Skip to content

Commit

Permalink
Allow string periodic for periodic BCs (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf authored Nov 15, 2024
1 parent 2b309bd commit 9ecbeae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amr-wind/boundary_conditions/BCInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ void BCIface::read_bctype()

// Protect against copy/paste errors where user intended to add a BC but
// forgot to turn off periodic in that direction, or vice versa.
if (geom.isPeriodic(ori.coordDir()) && bcstr != "null") {
if (geom.isPeriodic(ori.coordDir()) &&
((bcstr != "null") && (bcstr != "periodic"))) {
amrex::Abort(
"Setting " + bcstr + " BC on a periodic face " + bcid +
" is not allowed");
Expand Down

0 comments on commit 9ecbeae

Please sign in to comment.