Skip to content

Commit d9dc4ac

Browse files
authored
Fix casting in amrex::min. (#1844)
1 parent 752c3e7 commit d9dc4ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

amr-wind/wind_energy/ABLBoundaryPlane.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,8 @@ void ABLBoundaryPlane::write_data(
14541454

14551455
if ((blo[normal] == dlo[normal] && ori.isLow()) ||
14561456
(bhi[normal] == dhi[normal] && ori.isHigh())) {
1457-
min_lo[perp[0]] =
1458-
amrex::min<amrex::Real>(min_lo[perp[0]], blo[perp[0]]);
1459-
min_lo[perp[1]] =
1460-
amrex::min<amrex::Real>(min_lo[perp[1]], blo[perp[1]]);
1457+
min_lo[perp[0]] = amrex::min(min_lo[perp[0]], blo[perp[0]]);
1458+
min_lo[perp[1]] = amrex::min(min_lo[perp[1]], blo[perp[1]]);
14611459
}
14621460
}
14631461
amrex::ParallelDescriptor::ReduceIntMin(min_lo.begin(), min_lo.size());

0 commit comments

Comments
 (0)