42 unsigned int noVariables= std::max(numberOfVariables,8);
88 yt[i] = yIn[i] + hh*dydx[i] ;
94 yt[i] = yIn[i] + hh*dydxt[i] ;
100 yt[i] = yIn[i] + h*dydxm[i] ;
101 dydxm[i] += dydxt[i] ;
105 for(i=0; i<nvar; ++i)
107 yOut[i] = yIn[i]+h6*(dydx[i]+dydxt[i]+2.0*dydxm[i]);
118G4ClassicalRK4::StepWithEst(
const G4double*,
127 G4Exception(
"G4ClassicalRK4::StepWithEst()",
"GeomField0001",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void DumbStepper(const G4double yIn[], const G4double dydx[], G4double h, G4double yOut[]) override
G4ClassicalRK4(G4EquationOfMotion *EquationMotion, G4int numberOfVariables=6)
~G4ClassicalRK4() override
void NormalisePolarizationVector(G4double vec[12])
G4int GetNumberOfVariables() const
void RightHandSide(const G4double y[], G4double dydx[]) const