50 fNumberOfVariables(numberOfVariables)
53 unsigned int noVariables=
std::max(numberOfVariables,
56 dydxTemp =
new G4double[noVariables] ;
82 yTemp[7] = yOut[7] = yIn[7];
86 for( i = 0; i < fNumberOfVariables; i++ )
88 yTemp[i] = yIn[i] + 0.5 * h*dydx[i] ;
93 for( i = 0; i < fNumberOfVariables; i++ )
95 yOut[i] = yIn[i] + h * ( dydxTemp[i] );
G4SimpleRunge(G4EquationOfMotion *EquationRhs, G4int numberOfVariables=6)
void DumbStepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[])
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4int GetNumberOfStateVariables() const
void RightHandSide(const double y[], double dydx[])