WIP: Add a small drift before dumping a restart file to avoid problems of coordination
1 unresolved thread
1 unresolved thread
Does what it says on the tin. This prevents a crash (with checks on) or an inconsistency when a snapshot is written during the same step as the code dumps restart files.
Fixes #624 (closed).
Edited by Matthieu Schaller
Merge request reports
Activity
@rttw52 could you check whether this fixes the issue you reported of a crash following an unlucky restart - snapshot combination?
assigned to @pdraper
Great. Let's test this a bit more thoroughly now before merging.
Edited by Matthieu Schaller2995 2998 restart_remove_previous(e->restart_file); 2996 2999 2997 3000 /* Drift all particles first (may have just been done). */ 2998 if (!drifted_all) engine_drift_all(e, /*drift_mpole=*/1); 3001 if (!drifted_all) {
Please register or sign in to reply