Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Writing checkpoint files created empty fort.# files #2186

Merged

Conversation

deslaughter
Copy link
Collaborator

This PR is ready to merge.

Feature or improvement description

This PR fixes a bug in the dev-unstable-pointers branch where writing the checkpoint files would cause empty fort.# files to be generated in the same directory as the checkpoint files. This was caused by cleanup code being called on the registry file multiple times. Code was added to return early if the same file is closed multiple times. Also, the cleanup function was removed from FAST_CreateCheckpoint_T as it is no longer needed.

Impacted areas of the software
ModReg.f90 and Fast_Subs.f90

…ort.# files.

Code was added to return early if the same file is closed multiple times. Also, the cleanup function was removed from FAST_CreateCheckpoint_T as it is not needed.
@deslaughter deslaughter added this to the v4.0.0 milestone May 6, 2024
@deslaughter deslaughter requested a review from andrew-platt May 6, 2024 18:18
@deslaughter deslaughter self-assigned this May 6, 2024
…_Restart in serial, improve logic in CloseRegFile
@deslaughter deslaughter merged commit a9192ba into OpenFAST:dev-unstable-pointers May 6, 2024
21 checks passed
@deslaughter deslaughter deleted the b/chkp_file_close branch May 6, 2024 19:45
@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants