kill_switch.hpp
Go to the documentation of this file.
1 
6 #ifndef KILL_SWITCH_HPP
7 #define KILL_SWITCH_HPP 1
8 
9 #include "main_loop_2d.hpp"
10 
13 {
14 public:
15 
20  KillSwitch(const string& fname,
22 
23  bool operator()(const hdsim& sim);
24 
25 private:
26 
27  const string fname_;
29 };
30 
31 #endif // KILL_SWITCH_HPP
Wrapper around another termination condition that allows the user to terminate the main loop manually...
Definition: kill_switch.hpp:12
Newtonian hydrodynamic simulation.
Definition: hdsim2d.hpp:43
bool operator()(const hdsim &sim)
Returns true if the simulation should continue, false otherwise.
Definition: kill_switch.cpp:17
KillSwitch(const string &fname, TerminationCondition &tc)
Class constructor.
Definition: kill_switch.cpp:8
Standard simulation time advance loop.
Abstract class for a termination condition for the main loop.