Take a directory out of the resume candidates without touching files a later run rewrites.
summary.txt goes first: every schema generation, including legacy ones without a manifest, needs it to be
complete, so a crash between the two removals already leaves the directory non-resumable.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | checkpoint_dir |
subroutine invalidate_checkpoint_directory(checkpoint_dir) character(len=*), intent(in) :: checkpoint_dir integer :: status call remove_file_if_exists(trim(checkpoint_dir)//'/summary.txt', status) if (status /= filesystem_success) error stop 'Failed to remove a previous checkpoint summary.' call remove_file_if_exists(trim(checkpoint_dir)//'/'//checkpoint_manifest_name, status) if (status /= filesystem_success) error stop 'Failed to remove a previous checkpoint manifest.' end subroutine invalidate_checkpoint_directory