Skip to content

Commit 0ed89d3

Browse files
sbryngelsonclaude
andcommitted
Remove incorrect 2D hyper_cleaning prohibition
GLM divergence cleaning is valid in 2D. The z_cc access was already guarded with `if (p > 0)` in 22304a1. The prohibition broke the existing 2D hyper_cleaning, mhd_rotor, and orszag_tang tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 44986bf commit 0ed89d3

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

toolchain/mfc/case_validator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ def check_mhd_simulation(self):
10301030
relativity = self.get('relativity', 'F') == 'T'
10311031
hyper_cleaning = self.get('hyper_cleaning', 'F') == 'T'
10321032
n = self.get('n', 0)
1033-
p = self.get('p', 0)
10341033

10351034
self.prohibit(mhd and riemann_solver is not None and riemann_solver not in [1, 4],
10361035
"MHD simulations require riemann_solver = 1 (HLL) or riemann_solver = 4 (HLLD)")
@@ -1042,8 +1041,6 @@ def check_mhd_simulation(self):
10421041
"Hyperbolic cleaning requires mhd to be enabled")
10431042
self.prohibit(hyper_cleaning and n is not None and n == 0,
10441043
"Hyperbolic cleaning is not supported for 1D simulations")
1045-
self.prohibit(hyper_cleaning and n is not None and n > 0 and p is not None and p == 0,
1046-
"Hyperbolic cleaning is not supported for 2D simulations")
10471044

10481045

10491046
def check_igr_simulation(self): # pylint: disable=too-many-locals

0 commit comments

Comments
 (0)