Replacing calling Communication with a header

This commit is contained in:
Elyes Ahmed 2021-10-05 10:03:58 +02:00 committed by Atgeirr Flø Rasmussen
parent 0202b00d59
commit 65f0e4e7f0
2 changed files with 3 additions and 11 deletions

View File

@ -29,9 +29,8 @@
#include <opm/grid/common/GridEnums.hpp>
#include <dune/common/version.hh>
#include <opm/simulators/utils/ParallelCommunication.hpp>
#include <dune/common/parallel/collectivecommunication.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <array>
#include <cassert>
@ -44,13 +43,6 @@
#include <utility>
#include <vector>
namespace Opm::Parallel {
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 7)
using Communication = Dune::Communication<Dune::MPIHelper::MPICommunicator>;
#else
using Communication = Dune::CollectiveCommunication<Dune::MPIHelper::MPICommunicator>;
#endif
}
namespace Opm {

View File

@ -149,7 +149,7 @@ namespace Opm
initMPI();
}
#define DEMONSTRATE_RUN_WITH_NONWORLD_COMM 1
#define DEMONSTRATE_RUN_WITH_NONWORLD_COMM 0
~Main()
{