From 3c10785241b807aec5a8c1d5f4ae7f82e10d11ee Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Tue, 19 Nov 2013 14:34:55 +0100 Subject: [PATCH] Use correct pointer indirection When the sim parameter is a pointer to a simulator, we must of course use indirect access to its field; the shared_ptr template class does not have this method! --- opm/core/simulator/SimulatorOutput.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: