Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DormandPrinceRK78.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // G4DormandPrinceRK78.hh
27 //
28 // Created by Somnath on 30/06/15.
29 
30 #ifndef G4Dormand_Prince_RK78_hh
31 #define G4Dormand_Prince_RK78_hh
32 
34 
36 {
37  public:
39  G4int numberOfVariables = 6,
40  G4bool primary = true);
42 
43  void Stepper( const G4double y[],
44  const G4double dydx[],
45  G4double h,
46  G4double yout[],
47  G4double yerr[]) ;
48 
49  G4double DistChord() const;
50  G4int IntegratorOrder() const {return 7; }
51 
52  private :
54  G4DormandPrinceRK78& operator=(const G4DormandPrinceRK78&);
55 
56  G4double *ak2, *ak3, *ak4, *ak5, *ak6, *ak7, *ak8,
57  *ak9, *ak10, *ak11, *ak12, *ak13,
58  *yTemp, *yIn;
59 
60  G4double fLastStepLength;
61  G4double *fLastInitialVector, *fLastFinalVector,
62  *fLastDyDx, *fMidVector, *fMidError;
63  // for DistChord calculations
64 
65  G4DormandPrinceRK78* fAuxStepper;
66 };
67 
68 #endif /* defined(__G4_DormandPrinceRK78_hh) */
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
G4DormandPrinceRK78(G4EquationOfMotion *EqRhs, G4int numberOfVariables=6, G4bool primary=true)
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
G4int IntegratorOrder() const
G4double DistChord() const
double G4double
Definition: G4Types.hh:76