Skip to content

Commit

Permalink
ADMconstraints: use or instead of and when apply mask
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Dec 25, 2024
1 parent 3fa4e9e commit 6e1abbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ADMconstraints/src/lapsemask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extern "C" void ADMconstraints_LapseMask(CCTK_ARGUMENTS) {
grid.loop_int_device<0, 0, 0>(
grid.nghostzones, [=] ARITH_DEVICE(const PointDesc &p) ARITH_INLINE {
const CCTK_REAL rad = sqrt(p.x * p.x + p.y * p.y + p.z * p.z);
if (alp(p.I) < local_cutoff && rad > local_outer_radius) {
if (alp(p.I) < local_cutoff || rad > local_outer_radius) {
HC(p.I) = 0.0;
MCx(p.I) = 0.0;
MCy(p.I) = 0.0;
Expand Down

0 comments on commit 6e1abbe

Please sign in to comment.