numerics 0.1.0
Loading...
Searching...
No Matches
num::ODEParams Struct Reference

Parameters for all ODE integrators. Set only the fields you need. More...

#include <ode.hpp>

Public Attributes

real t0 = 0.0
 
real tf = 1.0
 
real h = 1e-3
 step size (fixed-step) or initial hint (adaptive)
 
real rtol = 1e-6
 relative tolerance (adaptive only)
 
real atol = 1e-9
 absolute tolerance (adaptive only)
 
idx max_steps = 1000000
 step cap (adaptive only)
 

Detailed Description

Parameters for all ODE integrators. Set only the fields you need.

Definition at line 64 of file ode.hpp.

Member Data Documentation

◆ atol

real num::ODEParams::atol = 1e-9

absolute tolerance (adaptive only)

Definition at line 69 of file ode.hpp.

◆ h

real num::ODEParams::h = 1e-3

step size (fixed-step) or initial hint (adaptive)

Definition at line 67 of file ode.hpp.

◆ max_steps

idx num::ODEParams::max_steps = 1000000

step cap (adaptive only)

Definition at line 70 of file ode.hpp.

◆ rtol

real num::ODEParams::rtol = 1e-6

relative tolerance (adaptive only)

Definition at line 68 of file ode.hpp.

◆ t0

real num::ODEParams::t0 = 0.0

Definition at line 65 of file ode.hpp.

Referenced by num::solve().

◆ tf

real num::ODEParams::tf = 1.0

Definition at line 66 of file ode.hpp.


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