mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -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:
parent
35ff439ee1
commit
0650f9b42e
@ -66,12 +66,14 @@ namespace Opm
|
||||
const ConstIter& local_begin,
|
||||
const Iter& global_begin)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
FixedSizeIterCopyHandle<ConstIter,Iter> handle(local_begin,
|
||||
global_begin);
|
||||
const auto& gatherScatterInf = grid.cellScatterGatherInterface();
|
||||
Dune::VariableSizeCommunicator<> comm(grid.comm(),
|
||||
gatherScatterInf);
|
||||
comm.backward(handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user