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

Fix for getting size of unallocated array #623

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Jan 4, 2021

Feature or improvement description
This fixes a runtime issue that could occur with some compilers. The code was asking for the size of an array that was not allocated, which some compilers define as 0, but is an undefined operation on others.

Related issue, if one exists
#620

Impacted areas of the software
Linearization with AeroDyn (without continuous states), using non-Windows and/or non-Intel setup.

Test results, if applicable
This shouldn't change any test results.

the code uses size(Ary) on an Ary that is not necessarily allocated. Now it is allocated to size 0 if there are no continuous states, which should fix the issues with using the size() function.
@rafmudaf rafmudaf merged commit d710538 into OpenFAST:dev Jan 6, 2021
@bjonkman bjonkman deleted the b/issue620 branch January 6, 2021 20:19
@rafmudaf rafmudaf mentioned this pull request Jan 13, 2021
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