Skip to content

Commit

Permalink
use constexpr instead of hard-coding it
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn committed Oct 24, 2024
1 parent 6b6bce4 commit 83ba48d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amr-wind/overset/overset_ops_routines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ void iblank_to_mask_vof(
const IntField& iblank, const Field& voff, IntField& maskf)
{
const auto& nlevels = iblank.repo().mesh().finestLevel() + 1;
constexpr amrex::Real band_tol = 1e-4;

for (int lev = 0; lev < nlevels; ++lev) {
const auto& ibl = iblank(lev);
Expand All @@ -28,7 +29,7 @@ void iblank_to_mask_vof(
near_interface =
near_interface ||
amr_wind::multiphase::interface_band(
ii, jj, kk, vofarrs[nbx], 1, 1e-4);
ii, jj, kk, vofarrs[nbx], 1, band_tol);
}
}
}
Expand Down

0 comments on commit 83ba48d

Please sign in to comment.