8 #include"potential_PFFT_3D.h" 12 #include"potential_CUFFT_3D.h" 16 #include"potential_SOR_3D.h" 76 int n_cells_potential;
86 bool TRANSFER_POTENTIAL_BOUNDARIES;
89 Potential_PFFT_3D Poisson_solver;
93 Potential_CUFFT_3D Poisson_solver;
97 Potential_SOR_3D Poisson_solver;
123 void Initialize( Real x_min, Real y_min, Real z_min, Real Lx, Real Ly, Real Lz,
int nx_total,
int ny_total,
int nz_total,
int nx_real,
int ny_real,
int nz_real, Real dx_real, Real dy_real, Real dz_real,
int n_ghost_pot_offset,
struct parameters *P);
125 void AllocateMemory_CPU(
void);
126 void Initialize_values_CPU();
127 void FreeMemory_CPU(
void);
129 Real Get_Average_Density( );
130 Real Get_Average_Density_function(
int g_start,
int g_end );
int nx_local
Local number of cells in the x-dimension.
Definition: grav3D.h:50
void Initialize(Real x_min, Real y_min, Real z_min, Real Lx, Real Ly, Real Lz, int nx_total, int ny_total, int nz_total, int nx_real, int ny_real, int nz_real, Real dx_real, Real dy_real, Real dz_real, int n_ghost_pot_offset, struct parameters *P)
Initialize the grid.
Real dz
z-width of cells
Definition: grav3D.h:66
Real dy
y-width of cells
Definition: grav3D.h:63
Grav3D(void)
Constructor for the gravity class.
int ny_local
Local number of cells in the y-dimension.
Definition: grav3D.h:53
Real * potential_h
Array containing the gravitational potential of each cell in the grid.
Definition: grav3D.h:109
Real dx
x-width of cells
Definition: grav3D.h:60
int nz_local
Local number of cells in the z-dimension.
Definition: grav3D.h:56