Deactivate gather code when MPI is not available.

In this case some of the used classes do not exist.
This commit is contained in:
Markus Blatt 2017-03-16 12:48:52 +01:00
parent 35ff439ee1
commit 0650f9b42e

View File

@ -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
}