Skip to content

Commit 78ecf8b

Browse files
committed
fix: clamp t_stop for adaptive-dt examples with reduced timesteps
Post_process computes the number of save files from t_stop/t_save. With t_step_stop=25, the simulation produces fewer saves than the original t_stop implies, causing 'lustre_N.dat is missing' errors. Clamp t_stop = t_save so post_process only reads saves that exist.
1 parent 220f796 commit 78ecf8b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

toolchain/mfc/test/cases.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,12 @@ def modify_example_case(case: dict):
15661566
case["t_step_stop"] = 25
15671567
case["t_step_save"] = 25
15681568

1569+
# Adaptive-dt examples: clamp t_stop so post_process
1570+
# only reads save files that actually exist.
1571+
if case.get("cfl_adap_dt", "F") == "T":
1572+
t_save = float(case.get("t_save", 1.0))
1573+
case["t_stop"] = t_save
1574+
15691575
caseSize = case["m"] * max(case["n"], 1) * max(case["p"], 1)
15701576
if caseSize > 25 * 25:
15711577
if case["n"] == 0 and case["p"] == 0:

0 commit comments

Comments
 (0)