Peano 4
Loading...
Searching...
No Matches
swift2::kernels::gravity Namespace Reference

Functions

template<typename ParticleContainer >
void computeGravitationalForce (const ParticleContainer &localParticles, const ParticleContainer &activeParticles)
 Hard-coded two-body gravitational interaction for Earth-Sun system.
 

Function Documentation

◆ computeGravitationalForce()

template<typename ParticleContainer >
void swift2::kernels::gravity::computeGravitationalForce ( const ParticleContainer & localParticles,
const ParticleContainer & activeParticles )

Hard-coded two-body gravitational interaction for Earth-Sun system.

Definition at line 6 of file TwoBodyProblem.cpph.

References tarch::la::greater(), and tarch::la::norm2().

Here is the call graph for this function: