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

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

Merged
merged 1 commit into from
Aug 29, 2024

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
21 checks passed
@andrew-platt andrew-platt deleted the b/MD_saveVar branch August 29, 2024 23:48

END IF

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