walker::Integrator class

Integrator Charm++ chare used to advance differential equations in time.

Constructors, destructors, conversion operators

Integrator(CProxy_Distributor hostproxy, CProxy_Collector collproxy, tk::CProxy_ParticleWriter particlewriterproxy, uint64_t npar) explicit
Constructor.
Integrator(CkMigrateMessage*) explicit
Migrate constructor.

Public functions

void setup(tk::real dt, tk::real t, uint64_t it, const std::map<tk::ctr::Product, tk::real>& moments)
Perform setup: set initial conditions and advance a time step.
void ic()
Set initial conditions.
void advance(tk::real dt, tk::real t, uint64_t it, const std::map<tk::ctr::Product, tk::real>& moments)
Advance all particles owned by this integrator.
void out()
Output particle positions to file.
void accumulate()
Start collecting statistics.
void accumulateCen(uint64_t it, tk::real t, tk::real dt, const std::vector<tk::real>& ord)

Function documentation

walker::Integrator::Integrator(CProxy_Distributor hostproxy, CProxy_Collector collproxy, tk::CProxy_ParticleWriter particlewriterproxy, uint64_t npar) explicit

Constructor.

Parameters
hostproxy in Host proxy to call back to
collproxy in Collector proxy to send results to
particlewriterproxy in Particle writer proxy to use
npar in Number of particles this integrator advances

void walker::Integrator::setup(tk::real dt, tk::real t, uint64_t it, const std::map<tk::ctr::Product, tk::real>& moments)

Perform setup: set initial conditions and advance a time step.

Parameters
dt in Size of time step
in Physical time
it in Iteration count
moments in Map of statistical moments

void walker::Integrator::advance(tk::real dt, tk::real t, uint64_t it, const std::map<tk::ctr::Product, tk::real>& moments)

Advance all particles owned by this integrator.

Parameters
dt in Size of time step
in Physical time
it in Iteration count
moments in Map of statistical moments

void walker::Integrator::accumulateCen(uint64_t it, tk::real t, tk::real dt, const std::vector<tk::real>& ord)

Parameters
it in Iteration count
in Physical time
dt in Time step size
ord in Estimated ordinary moments (collected from all PEs)