37#ifndef G4TSimpleRunge_HH
38#define G4TSimpleRunge_HH
44template <
class T_Equation,
int N>
53 EqRhs, numberOfVariables)
54 , fNumberOfVariables(numberOfVariables)
55 , fEquation_Rhs(EqRhs)
67 fEquation_Rhs->T_Equation::RightHandSide(y, dydx);
75 yTemp[7] = yOut[7] = yIn[7];
77 for(
G4int i = 0; i < N; ++i)
79 yTemp[i] = yIn[i] + 0.5 * h * dydx[i];
84 for(
G4int i = 0; i < N; ++i)
86 yOut[i] = yIn[i] + h * (dydxTemp[i]);
94 G4int fNumberOfVariables;
98 T_Equation* fEquation_Rhs;
G4int GetNumberOfStateVariables() const
static constexpr double IntegratorCorrection
G4int IntegratorOrder() const
void DumbStepper(const G4double yIn[], const G4double dydx[], G4double h, G4double yOut[])
G4TSimpleRunge(T_Equation *EqRhs, G4int numberOfVariables=6)
void RightHandSide(G4double y[], G4double dydx[])