Skip to content

Commit ebf2d07

Browse files
committed
Set region for lagrange4pt
1 parent 7d73c5c commit ebf2d07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mesh/interpolation/lagrange_4pt_xz.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ Field3D XZLagrange4pt::interpolate(const Field3D& f, const std::string& region)
132132

133133
// Then in X
134134
f_interp(x, y_next, z) = lagrange_4pt(xvals, t_x(x, y, z));
135+
ASSERT2(std::isfinite(f_interp(x, y_next, z)));
136+
135137
}
138+
const auto region2 = y_offset != 0 ? fmt::format("RGN_YPAR_{:+d}", y_offset) : region;
139+
f_interp.setRegion(region2);
136140
return f_interp;
137141
}
138142

0 commit comments

Comments
 (0)