This PR restores the overridden version of backup_file(), which existed in the patched releases but not in the MDModules version.
The scheme is simple:
If the filename ends with .colvars.state, keep a single backup copy ending with .old (consistent with current behavior), as this is the typical behavior for checkpoints. The extension differs from the CPT because the code that handles it is different and there will be some edge cases.
For all other files, call the relevant GROMACS function to handle multiple backup copies.
This PR restores the overridden version of
backup_file()
, which existed in the patched releases but not in the MDModules version.The scheme is simple:
.colvars.state
, keep a single backup copy ending with.old
(consistent with current behavior), as this is the typical behavior for checkpoints. The extension differs from the CPT because the code that handles it is different and there will be some edge cases.Fixes #669