In-Class Example: Orbit Integrator Compound Operators

In-Class Example: Orbit Integrator Compound Operators#

Let’s go back to the class version of our orbit integrator from In-Class Example: Orbit Integrator Class and add the += and -= operators to allow us to further simplify the code to do:

state += dt * state_derivs;

Here’s the code we created in class for this example:

  • orbit.H

  • orbit_integrator.cpp

  • test_orbit.cpp

  • GNUmakefile