From bd9ca91df26f3f8468aab505aa76683fcb9bc647 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 6 Jan 2020 15:43:16 +0100 Subject: [PATCH] fix build without mpi --- ebos/eclproblem.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 062402960..ede19c0a1 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -611,6 +611,7 @@ public: SolventModule::initFromDeck(vanguard.deck(), vanguard.eclState()); PolymerModule::initFromDeck(vanguard.deck(), vanguard.eclState()); FoamModule::initFromDeck(vanguard.deck(), vanguard.eclState()); +#if HAVE_MPI if (comm.size() > 1) { EclMpiSerializer ser(comm); size_t size = SolventModule::packSize(ser) + @@ -624,7 +625,9 @@ public: comm.broadcast(&position, 1, 0); comm.broadcast(buffer.data(), position, 0); } +#endif } else { +#if HAVE_MPI int size; comm.broadcast(&size, 1, 0); std::vector buffer(size); @@ -634,6 +637,7 @@ public: SolventModule::unpack(buffer, position, ser); PolymerModule::unpack(buffer, position, ser); FoamModule::unpack(buffer, position, ser); +#endif } // create the ECL writer