Skip to content

Commit 44986bf

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 7cb0512 commit 44986bf

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
@@ -1042,7 +1042,7 @@ def check_mhd_simulation(self):
10421042
"Hyperbolic cleaning requires mhd to be enabled")
10431043
self.prohibit(hyper_cleaning and n is not None and n == 0,
10441044
"Hyperbolic cleaning is not supported for 1D simulations")
1045-
self.prohibit(hyper_cleaning and p is not None and p == 0,
1045+
self.prohibit(hyper_cleaning and n is not None and n > 0 and p is not None and p == 0,
10461046
"Hyperbolic cleaning is not supported for 2D simulations")
10471047

10481048

0 commit comments

Comments
 (0)