Skip to content

Commit

Permalink
Include ghost cells when multiplying or dividing rho0 for anelastic (E…
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul1992 authored Feb 27, 2025
1 parent f42c0cf commit 23b314b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amr-wind/projection/incflo_apply_nodal_projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void incflo::ApplyProjection(
for (int idim = 0; idim < velocity.num_comp(); ++idim) {
amrex::Multiply(
velocity(lev), (*ref_density)(lev), 0, idim,
density[lev]->nComp(), 0);
density[lev]->nComp(), 1);
}
}
}
Expand Down Expand Up @@ -405,7 +405,7 @@ void incflo::ApplyProjection(
for (int idim = 0; idim < velocity.num_comp(); ++idim) {
amrex::Divide(
velocity(lev), (*ref_density)(lev), 0, idim,
density[lev]->nComp(), 0);
density[lev]->nComp(), 1);
}
}
}
Expand Down

0 comments on commit 23b314b

Please sign in to comment.