Swarm-NG  1.1
gravitation_common.hpp File Reference

Defines and implements common utility functions for calculating acceleration and jerk of gravitation. More...

#include "../types/coalescedstructarray.hpp"
#include "bppt.hpp"
#include "pair_calculation.hpp"

Go to the source code of this file.

Classes

struct  swarm::gpu::bppt::GravitationAccScalars< W >
 Unit type of the acceleration pairs shared array. More...
 
struct  swarm::gpu::bppt::GravitationAccJerkScalars< W >
 Unit type of the acceleration and jerk pairs shared array. More...
 

Namespaces

 swarm
 Swarm-NG library.
 
 swarm::gpu
 GPU-based integrators and other GPU tools.
 
 swarm::gpu::bppt
 Class of GPU integrators with a thread for each body-pair.
 

Constant Groups

 swarm
 Swarm-NG library.
 
 swarm::gpu
 GPU-based integrators and other GPU tools.
 
 swarm::gpu::bppt
 Class of GPU integrators with a thread for each body-pair.
 

Functions

GENERIC double swarm::gpu::bppt::inner_product (const double a[3], const double b[3])
 Helper function for calculating inner product.
 
template<int nbod>
GENERIC int swarm::gpu::bppt::first (int ij)
 Helper function to convert an integer from 1..n*(n-1)/2 to a pair (first,second), this function returns the first element.
 
template<int nbod>
GENERIC int swarm::gpu::bppt::second (int ij)
 Helper function to convert an integer from 1..n*(n-1)/2 to a pair (first,second), this function returns the second element.
 

Detailed Description

Defines and implements common utility functions for calculating acceleration and jerk of gravitation.

Definition in file gravitation_common.hpp.