Skip to content

Commit 3c715e9

Browse files
committed
Update case_validator.py
adjusting indentation so the code does not crash
1 parent 26b4697 commit 3c715e9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

toolchain/mfc/case_validator.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,11 @@ def check_phase_change(self):
330330
if not relax:
331331
return
332332

333-
self.prohibit(
334-
model_eqns is not None and (
335-
(model_eqns == 2 and relax_model not in (5, 6)) or
336-
(model_eqns == 3 and relax_model not in (1, 4, 5, 6))
337-
),
338-
"phase change requires model_eqns==2 with relax_model in [5,6] or model_eqns==3 with relax_model in [1,4,5,6]"
339-
)
333+
self.prohibit(
334+
model_eqns is not None and (
335+
(model_eqns == 2 and relax_model not in (5, 6)) or
336+
(model_eqns == 3 and relax_model not in (1, 4, 5, 6))),
337+
"phase change requires model_eqns==2 with relax_model in [5,6] or model_eqns==3 with relax_model in [1,4,5,6]")
340338
self.prohibit(palpha_eps is not None and palpha_eps <= 0,
341339
"palpha_eps must be positive")
342340
self.prohibit(palpha_eps is not None and palpha_eps >= 1,

0 commit comments

Comments
 (0)