Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::test::DiagnosticStepper< StepperT > Class Template Reference

Count the number of invocations to the field stepper. More...

#include <DiagnosticStepper.hh>

Public Types

Type aliases
using result_type = typename StepperT::result_type
 
using size_type = std::size_t
 

Public Member Functions

template<class... Args>
 DiagnosticStepper (Args &&... args)
 Forward construction arguments to the original stepper.
 
result_type operator() (real_type step, OdeState const &beg_state) const
 Calculate a step and increment the counter.
 
size_type count () const
 Get the number of steps.
 
void reset_count ()
 Reset the stepscounter.
 

Detailed Description

template<class StepperT>
class celeritas::test::DiagnosticStepper< StepperT >

Count the number of invocations to the field stepper.

This helps diagnose how many times the field driver advances a step.


The documentation for this class was generated from the following file: