![]() |
SEVN
|
#include <evolve.h>
Public Member Functions | |
| EvolveDefault (SevnLogging &svlog, bool record_state=true, bool include_failed=false) | |
| int | operator() (Binstar &binary) override |
| int | operator() (Star &star) override |
| std::string | name () override |
| virtual int | operator() (_UNUSED Binstar &binary) |
| virtual int | operator() (_UNUSED Star &star) |
Static Public Member Functions | |
| template<typename System > | |
| static bool | check_stalling (System &system) |
Protected Member Functions | |
| template<class System > | |
| void | final_print (System &system, bool evolution_result) |
Static Protected Member Functions | |
| template<class System > | |
| static void | catched_error_message (System &system, const sevnstd::sevnerr &e) |
| static long | elapsed_time (std::chrono::steady_clock::time_point start_clock) |
Protected Attributes | |
| SevnLogging & | _svlog |
| const bool | _record_state |
| const bool | _include_failed |
| const Options * | _options |
Private Member Functions | |
| template<typename System > | |
| int | evolve_default (System &system) |
Default evolve. Same evolve for both stars and binstars (see method evolve_default). @record_state_policy Following the dtout option in input dtout=end record only the first and last state of the binary @break_evolve_policy The evolution is stopped when a break trigger is set to true (depening on the tf option in input). @Extra_options Not used @binstar_evolve Yes @star_evolve Yes @catch sevnerr
|
inlineexplicit |
|
inlinestaticprotectedinherited |
Special error message printed to std::cerr. This message is always print do not throw errors and can be used to print a message of a catched error during during a system evolution
| e | Instance of Sevnerror |
| system_name | name of the system (sytem.get_name()) |
| system_ID | ID of the system (system.get_ID()) |
|
inlinestaticinherited |
Check if the system has been evolving for more than a given threshold (standard 20 s) If this is the case throw a sevnerror The check is performed only if the option check_stalling is set to true @TODO it could be better to move the check_stalling parameter from bool to double including the maximum time allowed for the evolution
| System | An object of the class Star or Binary |
| system | the system for which we want to check if the evolution is stalling |
|
inlinestaticprotectedinherited |
Measure the elapsed time in seconds from a given starting clock
| start_clock,an | instance of std::chrono::steady_clock::time_point, the elapsed time is estimated from this point |
|
inlineprivate |
|
inlineprotectedinherited |
|
inlineoverridevirtual |
Reimplemented from evolve_utility::EvolveFunctor.
|
inlinevirtualinherited |
|
inlineoverride |
|
inlineoverride |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |