40 fNumberOfVariables(num_variables)
42 dydxTemp =
new G4double[fNumberOfVariables] ;
43 dydxTemp2 =
new G4double[fNumberOfVariables] ;
44 yTemp =
new G4double[fNumberOfVariables] ;
45 yTemp2 =
new G4double[fNumberOfVariables] ;
70 for(
G4int i = 0; i < fNumberOfVariables; ++i )
72 yTemp[i] = yIn[i] + (1.0/3.0) * h * dydx[i] ;
77 for(
G4int i = 0; i < fNumberOfVariables; ++i )
79 yTemp2[i] = yIn[i] + (2.0/3.0) * h * dydxTemp[i] ;
84 for(
G4int i = 0; i < fNumberOfVariables; ++i )
86 yOut[i] = yIn[i] + h * (0.25 * dydx[i] + 0.75 * dydxTemp2[i]);
void NormalisePolarizationVector(G4double vec[12])
void RightHandSide(const G4double y[], G4double dydx[]) const
G4SimpleHeum(G4EquationOfMotion *EqRhs, G4int num_variables=6)
void DumbStepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[])