Skip to content
Snippets Groups Projects
Commit cc9a77f9 authored by Markus Blatt's avatar Markus Blatt
Browse files

Removed deprecation warnings.

[[Imported from SVN: r1565]]
parent 45e5e725
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@
#define BUILDINDEXSET_HH
#include <dune/istl/indexset.hh>
#include <dune/istl/plocalindex.hh>
#include <dune/common/parallel/indexset.hh>
#include <dune/common/parallel/plocalindex.hh>
/**
* @brief Flag for marking the indices.
......@@ -23,9 +23,9 @@ typedef Dune::ParallelLocalIndex<Flag> LocalIndex;
template<class C, class TG, int N>
void build(C& comm, Dune::ParallelIndexSet<TG,LocalIndex,N>& indexSet)
{
//
// The number of processes
int size=comm.size();
// The rank of our process
int rank=comm.rank();
......
......@@ -4,8 +4,8 @@
#include "config.h"
#include <dune/istl/indexset.hh>
#include <dune/istl/plocalindex.hh>
#include <dune/common/parallel/indexset.hh>
#include <dune/common/parallel/plocalindex.hh>
#include <iostream>
#include "dune/common/mpihelper.hh"
#include "buildindexset.hh"
......@@ -17,9 +17,6 @@ int main(int argc, char **argv)
// initialize mpi first.
Dune::MPIHelper& helper = Dune::MPIHelper::instance(argc, argv);
// The number of processes
int size = helper.size();
// The rank of our process
int rank = helper.rank();
......
......@@ -6,8 +6,8 @@
#include <iostream>
#include <dune/common/mpihelper.hh> // An initializer of MPI
#include <dune/common/exceptions.hh> // We use exceptions
#include <dune/istl/indexset.hh>
#include <dune/istl/plocalindex.hh>
#include <dune/common/parallel/indexset.hh>
#include <dune/common/parallel/plocalindex.hh>
enum Flags { owner, ghost };
......
......@@ -6,11 +6,11 @@
#include <iostream>
#include <dune/common/mpihelper.hh> // An initializer of MPI
#include <dune/common/exceptions.hh> // We use exceptions
#include <dune/istl/indexset.hh>
#include <dune/istl/remoteindices.hh>
#include <dune/istl/communicator.hh>
#include <dune/istl/plocalindex.hh>
#include <dune/istl/interface.hh>
#include <dune/common/parallel/indexset.hh>
#include <dune/common/parallel/remoteindices.hh>
#include <dune/common/parallel/communicator.hh>
#include <dune/common/parallel/plocalindex.hh>
#include <dune/common/parallel/interface.hh>
#include <dune/common/enumset.hh>
enum Flags { owner, ghost };
......@@ -136,7 +136,7 @@ int main(int argc, char** argv)
//Maybe initialize Mpi
MPIHelper& helper = MPIHelper::instance(argc, argv);
std::cout << "Hello World! This is poosc08." << std::endl;
std::cout << "Hello World! This is poosc08. rank=" <<helper.rank()<< std::endl;
if(Dune::MPIHelper::isFake)
std::cout<< "This is a sequential program." << std::endl;
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment