10 fname_(fname), tc_(tc)
12 ofstream f(fname.c_str());
20 ifstream f(fname_.c_str());
22 return (buf==
'0')&&(tc_(sim));
Newtonian hydrodynamic simulation.
bool operator()(const hdsim &sim)
Returns true if the simulation should continue, false otherwise.
KillSwitch(const string &fname, TerminationCondition &tc)
Class constructor.
Allows user to manually terminate the main loop.
Abstract class for a termination condition for the main loop.