Skip to content

Commit

Permalink
more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Dec 16, 2024
1 parent e9ecaa2 commit dfa1476
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amr-wind/wind_energy/ABLBoundaryPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,17 +535,17 @@ void ABLBoundaryPlane::write_bndry_native_header(const std::string& chkname)
if (ori.isLow()) {
const int lo = bndry_dom.smallEnd(normal);
const auto plo = geom.ProbLo(normal);
bndry_dom.setSmall(normal, lo - 1);
bndry_dom.setSmall(normal, lo - m_out_rad);
bndry_dom.setBig(normal, lo);
bndry_prob.setLo(normal, plo - dx[normal]);
bndry_prob.setLo(normal, plo - m_out_rad * dx[normal]);
bndry_prob.setHi(normal, plo + dx[normal]);
} else {
const int hi = bndry_dom.bigEnd(normal);
const auto phi = geom.ProbHi(normal);
bndry_dom.setSmall(normal, hi);
bndry_dom.setBig(normal, hi + 1);
bndry_dom.setBig(normal, hi + m_out_rad);
bndry_prob.setLo(normal, phi - dx[normal]);
bndry_prob.setHi(normal, phi + dx[normal]);
bndry_prob.setHi(normal, phi + m_out_rad * dx[normal]);
}
bndry_geoms[lev] = amrex::Geometry(bndry_dom, &bndry_prob);
amrex::Box minBox = m_mesh.boxArray(lev).minimalBox();
Expand Down

0 comments on commit dfa1476

Please sign in to comment.