Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,67 @@
// This code implementation is the intellectual property of
// the RD44 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: G4ExplicitEuler.cc,v 2.6 1998/11/12 16:16:10 japost Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Explicit Euler: x_1 = x_0 + h * dx_0
//
// most simple approach for solving linear differential equations.
// Take the current derivative and add it to the current position.
//
// W.Wander <wwc@mit.edu> 12/09/97
#include "G4ExplicitEuler.hh"
#include "G4ThreeVector.hh"
//////////////////////////////////////////////////////////////////////////
//
// Constructor
G4ExplicitEuler::G4ExplicitEuler(G4Mag_EqRhs *EqRhs,
G4int numberOfVariables) :
G4MagErrorStepper(EqRhs, numberOfVariables),
fNumberOfVariables(numberOfVariables)
{
}
///////////////////////////////////////////////////////////////////////
//
// Destructor
G4ExplicitEuler::~G4ExplicitEuler()
{
;
}
///////////////////////////////////////////////////////////////////////
//
//
void
G4ExplicitEuler::DumbStepper( const G4double yIn[],
const G4double dydx[],
const G4double h,
G4double yOut[] )
{
// const G4int nvar = 6 ;
G4int i;
for(i=0;i<fNumberOfVariables;i++)
{
yOut[i] = yIn[i] + h*dydx[i] ; // 1st and only Step
}
// NormaliseTangentVector( yOut ); // this could harm more than
// it helps - FIXME ???
return ;
}