Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
shammodels::sph::SolverLog Struct Reference

Class holding the logs of the solver /todo add a variable to keep only a definite number of steps in the step_logs. More...

#include <shammodels/sph/include/shammodels/sph/SolverLog.hpp>

+ Collaboration diagram for shammodels::sph::SolverLog:

Classes

struct  StepInfo
 

Public Member Functions

void register_log (StepInfo info)
 
f64 get_last_rate ()
 
u64 get_last_obj_count ()
 
shamsys::SystemMetrics get_last_system_metrics ()
 
u64 get_iteration_count ()
 
f64 get_cumulated_step_time ()
 
void reset_cumulated_step_time ()
 
u64 get_step_count ()
 
void reset_step_count ()
 

Public Attributes

std::vector< StepInfostep_logs = {}
 
f64 cumulated_step_time = 0
 
u64 step_count = 0
 

Detailed Description

Class holding the logs of the solver /todo add a variable to keep only a definite number of steps in the step_logs.

Definition at line 33 of file SolverLog.hpp.

Member Function Documentation

◆ get_cumulated_step_time()

f64 shammodels::sph::SolverLog::get_cumulated_step_time ( )
inline

Definition at line 63 of file SolverLog.hpp.

◆ get_iteration_count()

u64 shammodels::sph::SolverLog::get_iteration_count ( )
inline

Definition at line 61 of file SolverLog.hpp.

◆ get_last_obj_count()

u64 shammodels::sph::SolverLog::get_last_obj_count ( )

Definition at line 39 of file SolverLog.cpp.

◆ get_last_rate()

f64 shammodels::sph::SolverLog::get_last_rate ( )

Definition at line 22 of file SolverLog.cpp.

◆ get_last_system_metrics()

shamsys::SystemMetrics shammodels::sph::SolverLog::get_last_system_metrics ( )

Definition at line 54 of file SolverLog.cpp.

◆ get_step_count()

u64 shammodels::sph::SolverLog::get_step_count ( )
inline

Definition at line 67 of file SolverLog.hpp.

◆ register_log()

void shammodels::sph::SolverLog::register_log ( StepInfo  info)
inline

Definition at line 51 of file SolverLog.hpp.

◆ reset_cumulated_step_time()

void shammodels::sph::SolverLog::reset_cumulated_step_time ( )
inline

Definition at line 65 of file SolverLog.hpp.

◆ reset_step_count()

void shammodels::sph::SolverLog::reset_step_count ( )
inline

Definition at line 68 of file SolverLog.hpp.

Member Data Documentation

◆ cumulated_step_time

f64 shammodels::sph::SolverLog::cumulated_step_time = 0

Definition at line 48 of file SolverLog.hpp.

◆ step_count

u64 shammodels::sph::SolverLog::step_count = 0

Definition at line 49 of file SolverLog.hpp.

◆ step_logs

std::vector<StepInfo> shammodels::sph::SolverLog::step_logs = {}

Definition at line 46 of file SolverLog.hpp.


The documentation for this struct was generated from the following files: