Skip to content

Commit

Permalink
add tag removal
Browse files Browse the repository at this point in the history
  • Loading branch information
FR13ndSDP committed May 22, 2024
1 parent fabe020 commit cd776ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Tagging.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tag_dengrad (int i, int j, int k,
amrex::Array4<char> const& tag,
amrex::Array4<amrex::Real const> const& rho,
amrex::GeometryData const& /*geomdata*/,
amrex::Real dengrad_threshold, char tagval, char /*clearval*/) noexcept
amrex::Real dengrad_threshold, char tagval, char clearval) noexcept
{
using amrex::Real;

Expand All @@ -30,6 +30,8 @@ tag_dengrad (int i, int j, int k,
az = amrex::max(az,amrex::Math::abs(rho(i,j,k) - rho(i,j,k-1)));
if ((amrex::max(ax,ay,az) >= dengrad_threshold)) {
tag(i,j,k) = tagval;
} else {
tag(i,j,k) = clearval;
}
}

Expand Down

0 comments on commit cd776ef

Please sign in to comment.