From df7df09ab36ce0757abec64009eb05af275dbeef Mon Sep 17 00:00:00 2001 From: Bob Caddy Date: Tue, 8 Aug 2023 10:26:32 -0400 Subject: [PATCH] Remove commented out code --- src/grid/initial_conditions.cpp | 12 ++++++------ src/reconstruction/ppmc_cuda.cu | 8 -------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/grid/initial_conditions.cpp b/src/grid/initial_conditions.cpp index 4452f3dcc..26c4cf3ca 100644 --- a/src/grid/initial_conditions.cpp +++ b/src/grid/initial_conditions.cpp @@ -583,12 +583,12 @@ void Grid3D::Riemann(parameters const &P) #endif // SCALAR #ifdef DE C.GasEnergy[id] = P.P_r / (gama - 1.0); -#endif // DE - } // if diaph - } // if real - } // k - } // j - } // i +#endif // DE + } + } + } + } + } } /*! \fn void Shu_Osher() diff --git a/src/reconstruction/ppmc_cuda.cu b/src/reconstruction/ppmc_cuda.cu index efe3e51c1..ed4af9daa 100644 --- a/src/reconstruction/ppmc_cuda.cu +++ b/src/reconstruction/ppmc_cuda.cu @@ -58,14 +58,6 @@ __global__ void PPMC_CTU(Real *dev_conserved, Real *dev_bounds_L, Real *dev_boun return; } - /* - // Ensure that we are only operating on cells that will be used - if (size_t const min = 3, max = 3; - xid < min or xid >= nx - max or yid < min or yid >= ny - max or zid < min or zid >= nz - max) { - return; - } - */ - // Compute the total number of cells int const n_cells = nx * ny * nz;