source
newtonian
test_2d
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
12
class
KillSwitch
:
public
TerminationCondition
13
{
14
public
:
15
20
KillSwitch
(
const
string
& fname,
21
TerminationCondition
& tc);
22
23
bool
operator()
(
const
hdsim
& sim);
24
25
private
:
26
27
const
string
fname_;
28
TerminationCondition
& tc_;
29
};
30
31
#endif // KILL_SWITCH_HPP
KillSwitch
Wrapper around another termination condition that allows the user to terminate the main loop manually...
Definition:
kill_switch.hpp:12
hdsim
Newtonian hydrodynamic simulation.
Definition:
hdsim2d.hpp:43
KillSwitch::operator()
bool operator()(const hdsim &sim)
Returns true if the simulation should continue, false otherwise.
Definition:
kill_switch.cpp:17
KillSwitch::KillSwitch
KillSwitch(const string &fname, TerminationCondition &tc)
Class constructor.
Definition:
kill_switch.cpp:8
main_loop_2d.hpp
Standard simulation time advance loop.
TerminationCondition
Abstract class for a termination condition for the main loop.
Definition:
main_loop_2d.hpp:61
Generated on Thu Jun 4 2020 18:12:15 by
1.8.13