#include <G4ExplicitEuler.hh>
Inheritance diagram for G4ExplicitEuler:
Public Member Functions | |
G4ExplicitEuler (G4EquationOfMotion *EqRhs, G4int numberOfVariables=6) | |
~G4ExplicitEuler () | |
void | DumbStepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[]) |
G4int | IntegratorOrder () const |
Definition at line 48 of file G4ExplicitEuler.hh.
G4ExplicitEuler::G4ExplicitEuler | ( | G4EquationOfMotion * | EqRhs, | |
G4int | numberOfVariables = 6 | |||
) |
Definition at line 45 of file G4ExplicitEuler.cc.
00047 : G4MagErrorStepper(EqRhs, numberOfVariables) 00048 { 00049 }
G4ExplicitEuler::~G4ExplicitEuler | ( | ) |
void G4ExplicitEuler::DumbStepper | ( | const G4double | y[], | |
const G4double | dydx[], | |||
G4double | h, | |||
G4double | yout[] | |||
) | [virtual] |
Implements G4MagErrorStepper.
Definition at line 66 of file G4ExplicitEuler.cc.
References G4MagIntegratorStepper::GetNumberOfVariables().
00070 { 00071 const G4int numberOfVariables= GetNumberOfVariables(); 00072 00073 // Initialise time to t0, needed when it is not updated by the integration. 00074 // yOut[7] = yIn[7]; // Better to set it to NaN; // TODO 00075 00076 G4int i; 00077 00078 for(i=0;i< numberOfVariables;i++) 00079 { 00080 yOut[i] = yIn[i] + h*dydx[i] ; // 1st and only Step 00081 } 00082 00083 return ; 00084 }
G4int G4ExplicitEuler::IntegratorOrder | ( | ) | const [inline, virtual] |