87 int n_cells_potential;
96 bool TRANSFER_POTENTIAL_BOUNDARIES;
102 Potential_SOR_3D Poisson_solver;
106 PotentialParis3D Poisson_solver;
111 #define PARIS_GALACTIC_TEST
112 PotentialParisGalactic Poisson_solver_test;
114 PotentialParisGalactic Poisson_solver;
136 Real *analytic_potential_h;
157 Real *analytic_potential_d;
162#ifdef GRAV_ISOLATED_BOUNDARY_X
163 Real *pot_boundary_x0;
164 Real *pot_boundary_x1;
166#ifdef GRAV_ISOLATED_BOUNDARY_Y
167 Real *pot_boundary_y0;
168 Real *pot_boundary_y1;
170#ifdef GRAV_ISOLATED_BOUNDARY_Z
171 Real *pot_boundary_z0;
172 Real *pot_boundary_z1;
176 #ifdef GRAV_ISOLATED_BOUNDARY_X
177 Real *pot_boundary_x0_d;
178 Real *pot_boundary_x1_d;
180 #ifdef GRAV_ISOLATED_BOUNDARY_Y
181 Real *pot_boundary_y0_d;
182 Real *pot_boundary_y1_d;
184 #ifdef GRAV_ISOLATED_BOUNDARY_Z
185 Real *pot_boundary_z0_d;
186 Real *pot_boundary_z1_d;
201 void AllocateMemory_CPU(
void);
202 void Initialize_values_CPU();
203 void FreeMemory_CPU(
void);
205 void Read_Restart_HDF5(
struct Parameters *P,
int nfile);
208 Real Get_Average_Density();
209 Real Get_Average_Density_function(
int g_start,
int g_end);
211 void Set_Boundary_Flags(
int *flags);
214 void Copy_Isolated_Boundary_To_GPU_buffer(Real *isolated_boundary_h, Real *isolated_boundary_d,
int boundary_size);
215 void Copy_Isolated_Boundaries_To_GPU(
struct Parameters *P);
219 void AllocateMemory_GPU(
void);
220 void FreeMemory_GPU(
void);
void Initialize(const SpatialDomainProps &spatial_props, Real Lx, Real Ly, Real Lz, int n_ghost_pot_offset, Parameters *P)
Initialize the grid.
Definition spatial_domain_props.h:14