Skip to content

Commit d27fe4b

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 d261a84 commit d27fe4b

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
@@ -1029,7 +1029,6 @@ def check_mhd_simulation(self):
10291029
relativity = self.get('relativity', 'F') == 'T'
10301030
hyper_cleaning = self.get('hyper_cleaning', 'F') == 'T'
10311031
n = self.get('n', 0)
1032-
p = self.get('p', 0)
10331032

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

10471044

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

0 commit comments

Comments
 (0)