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] change time handling to double precision for G4D timestep index #1684

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

andrew-platt
Copy link
Collaborator

This PR is ready for merging, pending testing from @MYMahfouz (see #1615 (reply in thread)).

Feature or improvement description
The time handling for G4D time index finding was a mix of single and double precision. This could lead to finding the wrong index in a G4D wind grid passed from FF to an OpenFAST turbine, in which case the index might be outside the G4D box that was passed. We think this can occur with a long simulation of 4,200 s, with an OpenFAST DT of 0.0378 s, which resulted in a time index out of bounds at time 4132 seconds.

Related issue, if one exists
#1615 (comment)

Impacted areas of the software
This only affects long simulations with FAST.Farm.

Test results, if applicable
No test cases are affected (we don't run any of them that long).

The time handling for G4D time index finding was a mix of single and double precision.  This could lead to finding the wrong index in a G4D wind grid passed from FF to an OpenFAST turbine, in which case the index might be outside the G4D box that was passed.  We think this can occur with a long simulation of 4,200 s, with an OpenFAST DT of 0.0378 s, which resulted in a time index out of bounds at time 4132 seconds.
There was a bug where the modulo operation to wrap back to the beginning
of the wind file didn't work correctly, previously noted in issue OpenFAST#471.
This seemed to come back due to some changes in the IfW refactor.
The ifw_HAWC regression test was added to catch this and other IfW
changes in the future.
This commit specifies Python_ROOT_DIR for each github action
since each Job may have a different version of Python and a
different path to the executable. By specifying Python_ROOT_DIR
each Job should get a valid path.
@deslaughter deslaughter merged commit da4e312 into OpenFAST:rc-3.5.1 Jul 17, 2023
19 checks passed
@andrew-platt andrew-platt deleted the b/FF_AmbWind2_windBoxTime branch October 3, 2023 21:03
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