walker::Integrator class

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

Constructors, destructors, conversion operators

Integrator(CProxy_Distributor hostproxy, CProxy_Collector collproxy, 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 accumulateOrd(uint64_t it)
void accumulateCen(uint64_t it, const std::vector<tk::real>& ord)

Function documentation

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

Constructor.

Parameters
hostproxy in Host proxy to call back to
collproxy in Collector proxy to send results to
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::accumulateOrd(uint64_t it)

Parameters
it in Iteration count

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

Parameters
it in Iteration count
ord in Estimated ordinary moments (collected from all PEs)