/root/tmp/opm-core-release-2015.10-final/opm/core/simulator/SimulatorIncompTwophase.hpp

Event that is signaled every time the simulator has completed a a timestep.

Register a callback with this event to do processing at the end of every timestep, for instance to do reporting.

Note
If you want to know the current timestep, the callback must also monitor the timer object which was passed to run().
struct Foo {
void bar () { cout << "Called!" << endl; }
};
SimulatorIncompTwophase sim (...);
Foo f;
sim.timestep_completed ().add <Foo, &Foo::bar> (f);
sim.run (...);
Note
Registered callbacks should call the sync() method before accessing the state that was passed into the run() method.
See also
Opm::SimulatorIncompTwophase::sync