/usr/include/CLHEP/GenericFunctions/SimpleRKStepper.hh is in libclhep-dev 2.1.4.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #ifndef _SimpleRKStepper_h_
#define _SimpleRKStepper_h_
#include "CLHEP/GenericFunctions/RKIntegrator.hh"
//
// This is a stepper that steps with stepsize h using an
// Explicit Runge-Kutte method determined by a Butcher
// tableau.
//
// The stepsize is therefore not adaptively determined;
// so this type of stepper is mostly useful in attempting
// to categorize the different explicit RK Algorithms
// and probably not for real-life problems unless one has
// some a priori knowledge about how to set the stepsize.
//
#include "CLHEP/GenericFunctions/ButcherTableau.hh"
namespace Genfun {
class SimpleRKStepper:public RKIntegrator::RKStepper{
public:
// Constructor:
SimpleRKStepper(const ButcherTableau & tableau,
double stepsize);
// Destructor:
virtual ~SimpleRKStepper();
// Take a step:
virtual void step (const RKIntegrator::RKData * data, // functions
const RKIntegrator::RKData::Data & sdata, // start point
RKIntegrator::RKData::Data & ddata, // end point
double timeLimit // time limit
) const ;
// Clone:
virtual SimpleRKStepper *clone() const;
private:
ButcherTableau tableau;
double stepsize;
};
}
#endif
|