diff --git a/opm/autodiff/ParallelDebugOutput.hpp b/opm/autodiff/ParallelDebugOutput.hpp index bcaec6194..9d29a76c3 100644 --- a/opm/autodiff/ParallelDebugOutput.hpp +++ b/opm/autodiff/ParallelDebugOutput.hpp @@ -269,6 +269,9 @@ namespace Opm } else // all other simply send to the I/O rank { + // globalReservoirState will be deferenced even if this rank is not outputting anything + // To prevent dereferencing a nullptr we create an empty container + globalReservoirState_.reset( new SimulationDataContainer( 0, 0, 0)); send.insert( ioRank ); }