mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Deactivate gather code when MPI is not available.
In this case some of the used classes do not exist.
This commit is contained in:
@@ -66,12 +66,14 @@ namespace Opm
|
|||||||
const ConstIter& local_begin,
|
const ConstIter& local_begin,
|
||||||
const Iter& global_begin)
|
const Iter& global_begin)
|
||||||
{
|
{
|
||||||
|
#if HAVE_MPI
|
||||||
FixedSizeIterCopyHandle<ConstIter,Iter> handle(local_begin,
|
FixedSizeIterCopyHandle<ConstIter,Iter> handle(local_begin,
|
||||||
global_begin);
|
global_begin);
|
||||||
const auto& gatherScatterInf = grid.cellScatterGatherInterface();
|
const auto& gatherScatterInf = grid.cellScatterGatherInterface();
|
||||||
Dune::VariableSizeCommunicator<> comm(grid.comm(),
|
Dune::VariableSizeCommunicator<> comm(grid.comm(),
|
||||||
gatherScatterInf);
|
gatherScatterInf);
|
||||||
comm.backward(handle);
|
comm.backward(handle);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user