Skip to content

Commit

Permalink
Merge pull request #2457 from deslaughter/b/ADI_WriteOutput
Browse files Browse the repository at this point in the history
Bug: AeroDyn-Inflow WriteOutput Value Ordering
  • Loading branch information
andrew-platt authored Oct 10, 2024
2 parents 8a25ee4 + 0c870bd commit 7fc2930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions modules/aerodyn/src/AeroDyn_Inflow.f90
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,10 @@ subroutine ADI_CalcOutput(t, u, p, x, xd, z, OtherState, y, m, errStat, errMsg)

! --- Set outputs
!TODO: this assumes one rotor!!!
associate(AD_NumOuts => p%AD%rotors(1)%NumOuts + p%AD%rotors(1)%BldNd_TotNumOuts)
y%WriteOutput(1:AD_NumOuts) = y%AD%rotors(1)%WriteOutput(1:AD_NumOuts)
y%WriteOutput(AD_NumOuts+1:p%NumOuts) = y%IW_WriteOutput(1:m%IW%p%NumOuts)
associate(AD_NumOuts => p%AD%rotors(1)%NumOuts + p%AD%rotors(1)%BldNd_TotNumOuts, &
IW_NumOuts => m%IW%p%NumOuts)
y%WriteOutput(1:IW_NumOuts) = y%IW_WriteOutput(1:IW_NumOuts)
y%WriteOutput(IW_NumOuts+1:p%NumOuts) = y%AD%rotors(1)%WriteOutput(1:AD_NumOuts)
end associate

!----------------------------------------------------------------------------
Expand Down

0 comments on commit 7fc2930

Please sign in to comment.