Repository navigation
Commit a50763e
committed
CFL restarts: don't overwrite the restart checkpoint on the first step
CFL mode saved when abs(mod(mytime, t_save)) < dt. A restart starts at
exactly n_start*t_save, so after the first step mod(mytime, t_save) is
within an ulp of dt and falls below it about half the time. The save then
writes index int(mytime/t_save) = n_start and replaces the restart
checkpoint with the state one step later.
Save instead when int(mytime/t_save), the index s_save_data writes, moves
past the last saved index (n_start at start), or at t_stop. Fresh-run
saves happen at the same steps as before.
The CFL restart test restarts from save indices 1-4 and checks that each
restart leaves its own checkpoint byte-identical.1 parent 078f9d3 commit a50763e
6 files changed
Lines changed: 303 additions & 5 deletions
File tree
- src/simulation
- tests/25EB3D1F
- toolchain/mfc/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments