![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Tracks the wall-clock budget for Solver::evolve_until(): decides when the next walltime check is due, and whether the limit has been exceeded. More...
#include <shammodels/sph/include/shammodels/sph/Solver.hpp>
Public Member Functions | |
| WalltimeLimiter (bool active, f64 max_walltime) | |
| f64 | synced_wtime () |
| bool | due (i32 iter_count) const |
| True if the next walltime check is due at this iteration count. | |
| bool | exceeded (i32 iter_count) |
Public Attributes | |
| bool | active |
| f64 | max_walltime |
| f64 | start_wall_time |
| i32 | next_check_iter |
Tracks the wall-clock budget for Solver::evolve_until(): decides when the next walltime check is due, and whether the limit has been exceeded.
Definition at line 69 of file Solver.hpp.
|
inline |
Definition at line 75 of file Solver.hpp.
|
inline |
True if the next walltime check is due at this iteration count.
Definition at line 89 of file Solver.hpp.
|
inline |
Must only be called when due(iter_count) is true. Returns true if the walltime limit has been reached, otherwise updates the next check iteration estimate.
Definition at line 93 of file Solver.hpp.
|
inline |
Definition at line 81 of file Solver.hpp.
| bool shammodels::sph::WalltimeLimiter::active |
Definition at line 70 of file Solver.hpp.
| f64 shammodels::sph::WalltimeLimiter::max_walltime |
Definition at line 71 of file Solver.hpp.
| i32 shammodels::sph::WalltimeLimiter::next_check_iter |
Definition at line 73 of file Solver.hpp.
| f64 shammodels::sph::WalltimeLimiter::start_wall_time |
Definition at line 72 of file Solver.hpp.