Home-brewed integrator.
More...
#include <GyotoWorldline.h>
|
| Legacy (Worldline *parent) |
| Constructor.
|
|
Legacy * | clone (Worldline *newparent) const |
| Deep copy. More...
|
|
void | init (Worldline *line, const double *coord, const double delta) |
|
virtual std::string | kind () |
| Return the integrator kind.
|
|
virtual int | nextStep (double *coord, double h1max=1e6) |
| Make one step. More...
|
|
virtual void | doStep (double const coordin[8], double step, double coordout[8]) |
| Make one step of exactly this size. More...
|
|
virtual void | init () |
| Cache whatever needs to be cached. More...
|
|
virtual void | checkNorm (double coord[8]) |
| Check norm. More...
|
|
void | incRefCount () |
| Increment the reference counter. Warning: Don't mess with the counter.
|
|
int | decRefCount () |
| Decrement the reference counter and return current value. Warning: Don't mess with the counter.
|
|
int | getRefCount () |
| Get the current number of references.
|
|
|
double | coord_ [8] |
| Previously determined coordinate.
|
|
|
class | Gyoto::SmartPointer< Gyoto::Worldline::IntegState::Legacy > |
|
Home-brewed integrator.
The integrator used by this IntegState::Generic implementation is actually implemented in Metric::Generic::myrk4_adaptive(). It does not use most of the tuning parameters Worldline, it uses the homonym parameters in Metric::Generic instead. to use this integrator, pass "Legacy" to Worldline::integrator(std::string type).
virtual void Gyoto::Worldline::IntegState::Generic::checkNorm |
( |
double |
coord[8] | ) |
|
|
virtualinherited |
Check norm.
Issue a warning using GYOTO_SEVERE if norm is drifting. nextStep() implementations should call it.
Legacy* Gyoto::Worldline::IntegState::Legacy::clone |
( |
Worldline * |
newparent | ) |
const |
|
virtual |
virtual void Gyoto::Worldline::IntegState::Legacy::doStep |
( |
double const |
coordin[8], |
|
|
double |
step, |
|
|
double |
coordout[8] |
|
) |
| |
|
virtual |
Make one step of exactly this size.
doStep() is meant to refine a computation made using nextStep(). In particular, there is no checking for norm conservation.
- Parameters
-
[in] | coordin | current position-velocity; |
[in] | step | exact step to use. |
[out] | coordout | next position-velocity; |
Implements Gyoto::Worldline::IntegState::Generic.
virtual void Gyoto::Worldline::IntegState::Generic::init |
( |
| ) |
|
|
virtualinherited |
void Gyoto::Worldline::IntegState::Legacy::init |
( |
Worldline * |
line, |
|
|
const double * |
coord, |
|
|
const double |
delta |
|
) |
| |
|
virtual |
virtual int Gyoto::Worldline::IntegState::Legacy::nextStep |
( |
double * |
coord, |
|
|
double |
h1max = 1e6 |
|
) |
| |
|
virtual |
The Metric in this end of the Universe.
Taken from Worldline::line_, never updated.
Worldline* Gyoto::Worldline::IntegState::Generic::line_ |
|
protectedinherited |
Worldline that we are integrating.
Beware this is not a SmartPointer. Make sure line_ still exists when calling nestStep().
double Gyoto::Worldline::IntegState::Generic::normref_ |
|
protectedinherited |
Initial norm of the 4-velocity.
The documentation for this class was generated from the following file: