diff --git a/opm/simulators/flow/Main.hpp b/opm/simulators/flow/Main.hpp index 695cff597..b2d909642 100644 --- a/opm/simulators/flow/Main.hpp +++ b/opm/simulators/flow/Main.hpp @@ -452,7 +452,7 @@ private: MPI_Comm new_comm; int err = damaris_start(&is_client); isSimulationRank_ = (is_client > 0); - if (isSimulationRank_) { + if (isSimulationRank_ && (err == DAMARIS_OK || err == DAMARIS_NO_SERVER)) { damaris_client_comm_get(&new_comm); EclGenericVanguard::setCommunication(std::make_unique(new_comm)); } else {