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] InflowWind: using derived types to read wind file headers failed when using ifort. #1549

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

deslaughter
Copy link
Contributor

This pull request is ready to be merged.

Bug description
InflowWind did not read the wind file header data correctly when compiled with the Intel Fortran (ifort) compiler.

Impacted areas of the software
InflowWind_IO.f90

Additional supporting information
When InflowWind was refactored, the new code made use of derived types to read file header information for TurbSim and Bladed wind files. This allowed multiple variables to be read at one time and simplified the code. However, when compiled with ifort this read did not populate the derived type correctly due to the assumption of padding between the members of the type. GFortran did not have this issue. The solution was to add the SEQUENCE statement to the derived types indicating that the members should be considered without padding.

Test results, if applicable
InflowWind tests are passing when compiled with ifort and Visual studio 17 on Windows.

@bjonkman
Copy link
Contributor

Thanks for fixing this, @deslaughter!

@deslaughter deslaughter merged commit 2aef0cc into OpenFAST:dev Apr 27, 2023
@deslaughter deslaughter deleted the bug/ifw_read branch April 27, 2023 15:26
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 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.

3 participants