diff --git a/opm/core/simulator/SimulatorOutput.hpp b/opm/core/simulator/SimulatorOutput.hpp index e84b43ec..7a0fc061 100644 --- a/opm/core/simulator/SimulatorOutput.hpp +++ b/opm/core/simulator/SimulatorOutput.hpp @@ -142,7 +142,7 @@ struct SimulatorOutput : public SimulatorOutputBase { , sim_ (sim) { // connect simulation with output writer - sim.timestep_completed ().add (*this); + sim->timestep_completed ().add (*this); } protected: