Skip to content

Commit

Permalink
Add check on tower nodes for ExtInflow with CFD
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-platt committed Dec 18, 2023
1 parent 76cef7f commit 469db1a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/openfast-library/src/FAST_Library.f90
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,11 @@ subroutine FAST_ExtInfw_Init(iTurb, TMax, InputFileName_c, TurbID, OutFileRoot_c
IF (NumBl_c > 0) THEN
NumBlElem_c = Turbine(iTurb)%AD%Input(1)%rotors(1)%BladeMotion(1)%Nnodes
END IF
!FIXME: need some checks on this. If the Tower mesh is not initialized, this will be garbage
NumTwrElem_c = Turbine(iTurb)%AD%y%rotors(1)%TowerLoad%Nnodes
if (Turbine(iTurb)%AD%y%rotors(1)%TowerLoad%Committed) then
NumTwrElem_c = Turbine(iTurb)%AD%y%rotors(1)%TowerLoad%Nnodes
else
NumTwrElem_c = 0
endif
ELSE
NumBl_c = 0
NumBlElem_c = 0
Expand Down

0 comments on commit 469db1a

Please sign in to comment.