Skip to content

MD: replace "save" variable with logical in MD_Point#2400

Merged
andrew-platt merged 1 commit intoOpenFAST:devfrom
andrew-platt:b/MD_saveVar
Aug 29, 2024
Merged

MD: replace "save" variable with logical in MD_Point#2400
andrew-platt merged 1 commit intoOpenFAST:devfrom
andrew-platt:b/MD_saveVar

Conversation

@andrew-platt
Copy link
Collaborator

See comments on PR #2214 for details

Feature or improvement description
PR #2214 accidentally introduce a "save" variable that is persistent between calls to a routine in the MoorDyn_Point.f90 source.

Related issue, if one exists
#2214

Impacted areas of the software
MoorDyn

Additional supporting information
We don't allow "save" variables in the code for portability and parrallelization reasons.

Test results, if applicable
No changes

@andrew-platt andrew-platt self-assigned this Aug 29, 2024
@andrew-platt andrew-platt merged commit 8b58138 into OpenFAST:dev Aug 29, 2024
@andrew-platt andrew-platt deleted the b/MD_saveVar branch August 29, 2024 23:48
END DO

IF (found == 0) THEN ! detect if line not found TODO: fix this, its wrong. If pointNnattached is oprginally 2, then it will be 1 after one run of the loop and l will also be 1
IF (found) THEN ! detect if line not found TODO: fix this, its wrong. If pointNnattached is oprginally 2, then it will be 1 after one run of the loop and l will also be 1
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't this need to be if (.not. found)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Doh! whoops... I'll get that fixed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PR #2403 fixes this

Not sure how to include a facepalm emoji, but this mistake deserves one...

andrew-platt added a commit to andrew-platt/openfast that referenced this pull request Sep 3, 2024
andrew-platt added a commit that referenced this pull request Sep 3, 2024
@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

Comments