From 9ecbeae933d72cb46809237726092b4994377409 Mon Sep 17 00:00:00 2001 From: "Marc T. Henry de Frahan" Date: Fri, 15 Nov 2024 10:15:51 -0700 Subject: [PATCH] Allow string periodic for periodic BCs (#1347) --- amr-wind/boundary_conditions/BCInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amr-wind/boundary_conditions/BCInterface.cpp b/amr-wind/boundary_conditions/BCInterface.cpp index 6e3c92514f..fe53ba8477 100644 --- a/amr-wind/boundary_conditions/BCInterface.cpp +++ b/amr-wind/boundary_conditions/BCInterface.cpp @@ -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");