/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.
struct Foo {
};
SimulatorIncompTwophase sim (...);
Foo f;
sim.timestep_completed ().add <Foo, &Foo::bar> (f);
sim.run (...);
|