21 #ifndef GEOS_PHYSICSSOLVERS_SOLVERSTATISTICS_HPP
22 #define GEOS_PHYSICSSOLVERS_SOLVERSTATISTICS_HPP
87 {
return m_numTimeSteps; }
93 {
return m_numTimeStepCuts; }
99 {
return m_numSuccessfulOuterLoopIterations; }
105 {
return m_numSuccessfulNonlinearIterations; }
111 {
return m_numSuccessfulLinearIterations; }
117 {
return m_numDiscardedOuterLoopIterations; }
123 {
return m_numDiscardedNonlinearIterations; }
129 {
return m_numDiscardedLinearIterations; }
167 integer m_currentNumOuterLoopIterations;
170 integer m_currentNumNonlinearIterations;
173 integer m_currentNumLinearIterations;
177 integer m_numSuccessfulOuterLoopIterations;
180 integer m_numSuccessfulNonlinearIterations;
183 integer m_numSuccessfulLinearIterations;
187 integer m_numDiscardedOuterLoopIterations;
190 integer m_numDiscardedNonlinearIterations;
193 integer m_numDiscardedLinearIterations;
This class is used to log the solver statistics.
SolverStatistics(string const &name, dataRepository::Group *const parent)
Constructor for SolverStatistics Objects.
integer getNumTimeStepCuts() const
integer getNumSuccessfulLinearIterations() const
void logTimeStepCut()
Tell the solverStatistics that there is a time step cut.
integer getNumTimeSteps() const
integer getNumDiscardedLinearIterations() const
void logNonlinearIteration(integer const numLinearIterations)
Tell the solverStatistics that we are doing a nonlinear iteration.
integer getNumSuccessfulOuterLoopIterations() const
integer getNumDiscardedNonlinearIterations() const
void outputStatistics() const
Output the cumulative statistics to the terminal.
void saveTimeStepStatistics()
Save the statistics for the individual time step and increment the cumulative stats.
integer getNumSuccessfulNonlinearIterations() const
integer getNumDiscardedOuterLoopIterations() const
void logNonlinearIteration()
Tell the solverStatistics that we are doing a nonlinear iteration @detail This function is well suite...
void logOuterLoopIteration()
Tell the solverStatistics that we are doing an outer loop iteration.
void initializeTimeStepStatistics()
Initialize the counters used for an individual time step.
std::int32_t integer
Signed integer type.
Struct to serve as a container for variable strings and keys.
static constexpr char const * numDiscardedLinearIterationsString()
String key for the discarded number of linear iterations.
static constexpr char const * numDiscardedNonlinearIterationsString()
String key for the discarded number of nonlinear iterations.
static constexpr char const * numDiscardedOuterLoopIterationsString()
String key for the discarded number of outer loop iterations.
static constexpr char const * numTimeStepsString()
String key for the number of time steps.
static constexpr char const * numSuccessfulOuterLoopIterationsString()
String key for the successful number of outer loop iterations.
static constexpr char const * numSuccessfulNonlinearIterationsString()
String key for the successful number of nonlinear iterations.
static constexpr char const * numSuccessfulLinearIterationsString()
String key for the successful number of linear iterations.
static constexpr char const * numTimeStepCutsString()
String key for the number of time step cuts.