Skip to content

Commit

Permalink
remove compile warning in extruded triangles for 2D
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Oct 7, 2024
1 parent 2092c51 commit 78d8388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ ExtrudedTriangles::build(
problo = geom.ProbLo();
probhi = geom.ProbHi();

maxlen = amrex::max<amrex::Real>(
amrex::max<amrex::Real>(geom.ProbLength(0), geom.ProbLength(1)),
geom.ProbLength(2));
AMREX_D_TERM(maxlen = geom.ProbLength(0);
, maxlen = amrex::max<amrex::Real>(maxlen, geom.ProbLength(1));
, maxlen = amrex::max<amrex::Real>(maxlen, geom.ProbLength(2)););

// setting all triangles to be waaay outside the domain initially
for (int itri = 0; itri < max_tri; itri++) {
Expand Down

0 comments on commit 78d8388

Please sign in to comment.