Skip to content

Commit

Permalink
don't compute cooling in ghost cells
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Aug 16, 2023
1 parent b1e7c95 commit efb6d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ShockCloud/cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ void computeCooling(amrex::MultiFab &mf, const Real dt_in, cloudy_tables &cloudy
auto tables = cloudyTables.const_tables();
auto const &state = mf.arrays();

amrex::ParallelFor(mf, [=] AMREX_GPU_DEVICE(int bx, int i, int j, int k) noexcept {
amrex::IntVect ng{0,0,0};
amrex::ParallelFor(mf, ng, [=] AMREX_GPU_DEVICE(int bx, int i, int j, int k) noexcept {
const Real rho = state[bx](i, j, k, HydroSystem<ShockCloud>::density_index);
const Real x1Mom = state[bx](i, j, k, HydroSystem<ShockCloud>::x1Momentum_index);
const Real x2Mom = state[bx](i, j, k, HydroSystem<ShockCloud>::x2Momentum_index);
Expand Down

0 comments on commit efb6d34

Please sign in to comment.