PeTar
N-body code for collisional gravitational systems
phantomquad_for_p3t_k.hpp File Reference
#include <cassert>
#include "v2r8.h"
Include dependency graph for phantomquad_for_p3t_k.hpp:

Go to the source code of this file.

Classes

class  PhantomGrapeQuad
 

Enumerations

enum  { NIMAX = 2048, NJMAX = 262144 }
 

Functions

class PhantomGrapeQuad __attribute__ ((aligned(128)))
 
 PhantomGrapeQuad ()
 
void set_eps2 (const double _eps2)
 
void set_r_crit2 (const double _r_crit2)
 
void set_cutoff (const double _r_out, const double _r_in)
 
void set_epj_one (const int addr, const double x, const double y, const double z, const double m, const double r_search)
 
template<typename EPJ_t >
void set_epj (const int nj, const EPJ_t epj[])
 
void set_spj_one (const int addr, const double x, const double y, const double z, const double m, const double qxx, const double qyy, const double qzz, const double qxy, const double qyz, const double qzx)
 
template<typename SPJ_t >
void set_spj (const int nj, const SPJ_t spj[])
 
void set_xi_one (const int addr, const double x, const double y, const double z, const double r_search)
 
template<typename EPI_t >
void set_xi (const int ni, const EPI_t spj[])
 
template<typename real_t >
void get_accp_one (const int addr, real_t &ax, real_t &ay, real_t &az, real_t &pot)
 
template<typename real_t >
void get_accp_one (const int addr, real_t &ax, real_t &ay, real_t &az, real_t &pot, real_t &nngb)
 
template<typename real_t >
void accum_accp_one (const int addr, real_t &ax, real_t &ay, real_t &az, real_t &pot)
 
template<typename real_t >
void accum_accp_one (const int addr, real_t &ax, real_t &ay, real_t &az, real_t &pot, real_t &nngb)
 
void run_epj (const int ni, const int nj)
 
void run_epj_for_p3t_with_linear_cutoff (const int ni, const int nj)
 
void run_spj (const int ni, const int nj)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NIMAX 
NJMAX 

Function Documentation

◆ __attribute__()

class PhantomGrapeQuad __attribute__ ( (aligned(128))  )

◆ accum_accp_one() [1/2]

template<typename real_t >
void __attribute__::accum_accp_one ( const int  addr,
real_t &  ax,
real_t &  ay,
real_t &  az,
real_t &  pot 
)

◆ accum_accp_one() [2/2]

template<typename real_t >
void __attribute__::accum_accp_one ( const int  addr,
real_t &  ax,
real_t &  ay,
real_t &  az,
real_t &  pot,
real_t &  nngb 
)

◆ get_accp_one() [1/2]

template<typename real_t >
void __attribute__::get_accp_one ( const int  addr,
real_t &  ax,
real_t &  ay,
real_t &  az,
real_t &  pot 
)

◆ get_accp_one() [2/2]

template<typename real_t >
void __attribute__::get_accp_one ( const int  addr,
real_t &  ax,
real_t &  ay,
real_t &  az,
real_t &  pot,
real_t &  nngb 
)

◆ PhantomGrapeQuad()

__attribute__::PhantomGrapeQuad ( )

◆ run_epj()

void __attribute__::run_epj ( const int  ni,
const int  nj 
)

◆ run_epj_for_p3t_with_linear_cutoff()

void __attribute__::run_epj_for_p3t_with_linear_cutoff ( const int  ni,
const int  nj 
)

◆ run_spj()

void __attribute__::run_spj ( const int  ni,
const int  nj 
)

◆ set_cutoff()

void __attribute__::set_cutoff ( const double  _r_out,
const double  _r_in 
)

◆ set_epj()

template<typename EPJ_t >
void __attribute__::set_epj ( const int  nj,
const EPJ_t  epj[] 
)

◆ set_epj_one()

void __attribute__::set_epj_one ( const int  addr,
const double  x,
const double  y,
const double  z,
const double  m,
const double  r_search 
)

◆ set_eps2()

void __attribute__::set_eps2 ( const double  _eps2)

◆ set_r_crit2()

void __attribute__::set_r_crit2 ( const double  _r_crit2)

◆ set_spj()

template<typename SPJ_t >
void __attribute__::set_spj ( const int  nj,
const SPJ_t  spj[] 
)

◆ set_spj_one()

void __attribute__::set_spj_one ( const int  addr,
const double  x,
const double  y,
const double  z,
const double  m,
const double  qxx,
const double  qyy,
const double  qzz,
const double  qxy,
const double  qyz,
const double  qzx 
)

◆ set_xi()

template<typename EPI_t >
void __attribute__::set_xi ( const int  ni,
const EPI_t  spj[] 
)

◆ set_xi_one()

void __attribute__::set_xi_one ( const int  addr,
const double  x,
const double  y,
const double  z,
const double  r_search 
)