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

[BugFix] ServoDyn inputs for Lidar allocated twice, and a few other minor issues #1620

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

andrew-platt
Copy link
Collaborator

@andrew-platt andrew-platt commented Jun 12, 2023

This is ready to merge.

Feature or improvement description
Release v3.5.0 introduced a new Lidar capability into InflowWind. Just prior to release a few minor issues were fixed, but a double allocation also got introduced. This causes issues with most compilers.

Also fixed a couple minor issues with values getting set without allocation, and allocation to size 0.

Related issue, if one exists
#1606 reported by @foxton9

Impacted areas of the software
The Lidar module of OpenFAST should now function correctly.

Test results, if applicable
No test results are affected.

The input arrays for Lidar to ServoDyn get allocated in ServoDyn.f90, and again in BladedInterface_EX.f90.  This double allocation causes issues for many compilers.  The logic behind all this really should be looked at in more detail, but since the Lidar module in InflowWind will be superceeded by LidarSim in release 4.0.0, I'm not going to sort the logic right now.

Affected arrays:
    u%LidSpeed
    u%MsrPositionsX
    u%MsrPositionsY
    u%MsrPositionsZ

Thanks  to @foxton9 for reporting the issue, and proposing the fix!
@andrew-platt andrew-platt changed the title [BugFix] ServoDyn inputs for Lidar allocated twice [BugFix] ServoDyn inputs for Lidar allocated twice, and a few other minor issues Jun 12, 2023
@andrew-platt
Copy link
Collaborator Author

Closes #1606

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.

1 participant