Skip to content

Commit

Permalink
tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
mabruzzo committed Jul 23, 2024
1 parent dbf7153 commit afa081c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/grid/grid3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ void Grid3D::Execute_Hydro_Integrator(void)
#ifdef SIMPLE
Simple_Algorithm_3D_CUDA(C.device, C.d_Grav_potential, H.nx, H.ny, H.nz, x_off, y_off, z_off, H.n_ghost, H.dx, H.dy,
H.dz, H.xbound, H.ybound, H.zbound, H.dt, H.n_fields, H.custom_grav, H.density_floor,
C.Grav_potential, SlowCellConditionChecker(1.0 /H.min_dt_slow,H.dx, H.dy, H.dz));
C.Grav_potential, SlowCellConditionChecker(1.0 / H.min_dt_slow, H.dx, H.dy, H.dz));
#endif // SIMPLE
} else {
chprintf("Error: Grid dimensions nx: %d ny: %d nz: %d not supported.\n", H.nx, H.ny, H.nz);
Expand Down
6 changes: 3 additions & 3 deletions src/integrators/simple_3D_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
void Simple_Algorithm_3D_CUDA(Real *d_conserved, Real *d_grav_potential, int nx, int ny, int nz, int x_off, int y_off,
int z_off, int n_ghost, Real dx, Real dy, Real dz, Real xbound, Real ybound, Real zbound,
Real dt, int n_fields, int custom_grav, Real density_floor, Real *host_grav_potential,
const SlowCellConditionChecker& slow_check)
const SlowCellConditionChecker &slow_check)
{
// Here, *dev_conserved contains the entire
// set of conserved variables on the grid
Expand Down Expand Up @@ -156,8 +156,8 @@ void Simple_Algorithm_3D_CUDA(Real *d_conserved, Real *d_grav_potential, int nx,
GPU_Error_Check();

// Step 3b: Address any crashed threads
hipLaunchKernelGGL(PostUpdate_Conserved_Correct_Crashed_3D, dim1dGrid, dim1dBlock, 0, 0,
dev_conserved, nx, ny, nz, x_off, y_off, z_off, n_ghost, gama, n_fields, slow_check);
hipLaunchKernelGGL(PostUpdate_Conserved_Correct_Crashed_3D, dim1dGrid, dim1dBlock, 0, 0, dev_conserved, nx, ny, nz,
x_off, y_off, z_off, n_ghost, gama, n_fields, slow_check);
GPU_Error_Check();

#ifdef DE
Expand Down
2 changes: 1 addition & 1 deletion src/integrators/simple_3D_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
void Simple_Algorithm_3D_CUDA(Real *d_conserved, Real *d_grav_potential, int nx, int ny, int nz, int x_off, int y_off,
int z_off, int n_ghost, Real dx, Real dy, Real dz, Real xbound, Real ybound, Real zbound,
Real dt, int n_fields, int custom_grav, Real density_floor, Real *host_grav_potential,
const SlowCellConditionChecker& slow_check);
const SlowCellConditionChecker &slow_check);

void Free_Memory_Simple_3D();

Expand Down

0 comments on commit afa081c

Please sign in to comment.