Skip to content

Commit 4997be7

Browse files
sbryngelsonclaude
andcommitted
Fix hyper_cleaning 2D prohibition double-triggering for 1D cases
In 1D simulations n==0 and p==0, so both the 1D and 2D prohibition checks were firing simultaneously. Gate the 2D check on n > 0 so it only triggers for configurations that are actually 2D. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a8f0d84 commit 4997be7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchain/mfc/case_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def check_mhd_simulation(self):
10411041
"Hyperbolic cleaning requires mhd to be enabled")
10421042
self.prohibit(hyper_cleaning and n is not None and n == 0,
10431043
"Hyperbolic cleaning is not supported for 1D simulations")
1044-
self.prohibit(hyper_cleaning and p is not None and p == 0,
1044+
self.prohibit(hyper_cleaning and n is not None and n > 0 and p is not None and p == 0,
10451045
"Hyperbolic cleaning is not supported for 2D simulations")
10461046

10471047

0 commit comments

Comments
 (0)