mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Replacing calling Communication with a header
This commit is contained in:
parent
0202b00d59
commit
65f0e4e7f0
@ -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 {
|
||||
|
||||
|
@ -149,7 +149,7 @@ namespace Opm
|
||||
initMPI();
|
||||
}
|
||||
|
||||
#define DEMONSTRATE_RUN_WITH_NONWORLD_COMM 1
|
||||
#define DEMONSTRATE_RUN_WITH_NONWORLD_COMM 0
|
||||
|
||||
~Main()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user