Swarm-NG  1.1
tutorial_propagator_plugin.cu File Reference

A integrator plugin based on tutorial propagator. More...

Go to the source code of this file.

Detailed Description

A integrator plugin based on tutorial propagator.

* \brief A integrator plugin based on tutorial propagator.
*
* /

This is the .cu file where you define the plugin

typedef gpulog::device_log L;
using namespace swarm::monitors;

The generic is the generic integrator. It takes three parameters: an integrator, a monitor and an implementation of gravitational force calculation.

integrator_plugin_initializer< generic< TutorialPropagator, stop_on_ejection<L>, GravitationAccJerk > >
tutorial_prop_plugin("tutorial"
,"This is the integrator based on tutorial propagator");

For complete listing of these two files look at src/tutorials/tutorial_propagator.hpp and src/tutorials/tutorial_propagator_plugin.cu

Definition in file tutorial_propagator_plugin.cu.