Skip to content

Reenable writing check point files when using the MAP module#3146

Merged
andrew-platt merged 1 commit intoOpenFAST:devfrom
deslaughter:reenable-map-chkpt
Jan 16, 2026
Merged

Reenable writing check point files when using the MAP module#3146
andrew-platt merged 1 commit intoOpenFAST:devfrom
deslaughter:reenable-map-chkpt

Conversation

@deslaughter
Copy link
Collaborator

This PR is ready to merge

Feature or improvement description

This PR closes #2947 where checkpoint file writing was disabled when the MAP module was used. This was due to a misunderstanding about how the MAP_Restore function works in re-initializing the C memory within the module. Once all the previous checks were removed, the code worked as intended.

Related issue, if one exists

#2947

Impacted areas of the software

FAST_Subs.f90 and several _Types.f90 files

Additional supporting information

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-enables checkpoint file writing and mode shape visualization when using the MAP mooring module by removing previously added safeguards that were blocking serialization of C interop objects.

Changes:

  • Removed code generator logic that prevented packing of C objects (C_obj%object)
  • Removed runtime checks blocking checkpoint file creation when MAP module is active
  • Removed runtime check preventing mode shape visualization with MAP module
  • Updated ElastoDyn comment to clarify that Hubf2Iner refers to the teeter axis

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
modules/openfast-registry/src/registry_gen_fortran.cpp Removed code generator check that prevented packing C objects
modules/openfast-library/src/FAST_Subs.f90 Removed runtime blocks preventing mode shape visualization and checkpoint file writing when MAP module is used
modules/map/src/MAP_Types.f90 Removed auto-generated pack function checks for C objects (generated from registry changes)
modules/extloads/src/ExtLoadsDX_Types.f90 Removed auto-generated pack function checks for C objects (generated from registry changes)
modules/externalinflow/src/ExternalInflow_Types.f90 Removed auto-generated pack function checks for C objects (generated from registry changes)
modules/elastodyn/src/ElastoDyn_Types.f90 Clarified comment describing Hubf2Iner as referring to the teeter axis

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the ED_Types.f90 file as well. Not sure why that hadn't been updated before.

@andrew-platt andrew-platt merged commit b02534c into OpenFAST:dev Jan 16, 2026
18 checks passed
@deslaughter deslaughter deleted the reenable-map-chkpt branch January 16, 2026 18:00
@andrew-platt andrew-platt mentioned this pull request Jan 23, 2026
36 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.

Reenable use of MAP when using Checkpoint files.

3 participants