/builddir/build/BUILD/opm-simulators-release-2017.10-update1/opm/simulators/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().
 {.cpp}
 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

Generated on 26 Mar 2018 by  doxygen 1.6.1