Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Weiquns suggestions

Co-authored-by: Weiqun Zhang <[email protected]>
  • Loading branch information
RevathiJambunathan and WeiqunZhang authored Nov 16, 2023
1 parent baf8478 commit 57d8ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Utils/WarpXTagging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ WarpX::ErrorEst (int lev, TagBoxArray& tags, Real /*time*/, int /*ngrow*/)
const RealVect pos {AMREX_D_DECL((i+0.5_rt)*dx[0]+problo[0],
(j+0.5_rt)*dx[1]+problo[1],
(k+0.5_rt)*dx[2]+problo[2])};
bool tag_val = 0;
bool tag_val = false;
if (ref_parser) {
#if defined (WARPX_DIM_3D)
tag_val = (ref_parser(pos[0], pos[1], pos[2]) == 1);
Expand All @@ -61,7 +61,7 @@ WarpX::ErrorEst (int lev, TagBoxArray& tags, Real /*time*/, int /*ngrow*/)
} else {
tag_val = (pos > ftlo && pos < fthi);
}
if ( tag_val == 1) {
if (tag_val) {
fab(i,j,k) = TagBox::SET;
}
});
Expand Down

0 comments on commit 57d8ff0

Please sign in to comment.