52 lines
1.4 KiB
C++
52 lines
1.4 KiB
C++
// This code implementation is the intellectual property of
|
|
// the GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: G4CashKarpRKF45.hh,v 1.1.10.1 1999/12/07 20:47:58 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-01-00 $
|
|
//
|
|
//
|
|
// J.Apostolakis, V.Grichine 30.1.97
|
|
|
|
#ifndef G4CashKARP_RKF45
|
|
#define G4CashKARP_RKF45
|
|
#include "G4MagIntegratorStepper.hh"
|
|
|
|
class G4CashKarpRKF45: public G4MagIntegratorStepper
|
|
{
|
|
|
|
public:
|
|
G4CashKarpRKF45(G4Mag_EqRhs *EqRhs, G4int numberOfVariables = 6) ;
|
|
~G4CashKarpRKF45() ;
|
|
|
|
void Stepper( const G4double y[],
|
|
const G4double dydx[],
|
|
const G4double h,
|
|
G4double yout[],
|
|
G4double yerr[] ) ;
|
|
|
|
void StepWithEst(const G4double yIn[],
|
|
const G4double dydx[],
|
|
const G4double Step,
|
|
G4double yOut[],
|
|
G4double& alpha2,
|
|
G4double& beta2,
|
|
const G4double B1[],
|
|
G4double B2[] ) ;
|
|
|
|
G4double DistChord() const = 0 ; // This is not IMPLEMENTED yet.
|
|
// It must be done before it can work.
|
|
|
|
G4int IntegratorOrder() { return 4 ; };
|
|
|
|
private:
|
|
G4int fNumberOfVariables ;
|
|
|
|
G4double *ak2, *ak3, *ak4, *ak5, *ak6, *ak7, *yTemp, *yIn; // scratch space
|
|
};
|
|
|
|
#endif /* G4CashKARP_RKF45 */
|