Skip to content

Commit

Permalink
Merge pull request #2134 from andrew-platt/b/SrvD_SumFileSegFault
Browse files Browse the repository at this point in the history
SrvD: Fix seg fault if blade StC used while writing summary file
  • Loading branch information
andrew-platt authored Apr 1, 2024
2 parents 531dbe9 + 0b594dd commit c5ff09d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelogs/v3.5.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Other notable improvements include corrections to turbine indexing when coupled
### ServoDyn

#2079 Handling of Paths for SrvD UserSubs Input Files (@rdamiani)
#2134 Bugfix seg fault if blade StC used while writing summary file (@aplatt)


### TurbSim
Expand Down
2 changes: 1 addition & 1 deletion modules/servodyn/src/ServoDyn.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ subroutine StC_Blade_Setup(SrvD_InitInp,SrvD_p,InputFileData,SrvD_u,SrvD_y,SrvD_
! A little bit of information about the StC location
if (unsum >0) then
write(UnSum, '(A24,i2)') ' Blade StC instance: ',j
write(UnSum, '(10x,A)') 'Input file: '//trim(InputFileData%NStCfiles(j))
write(UnSum, '(10x,A)') 'Input file: '//trim(InputFileData%BStCfiles(j))
do k=1,StC_InitInp%NumMeshPts
write(UnSum, '(10x,A6,I1,A29)') 'Blade ',k,' location (global/inertial): '
write(UnSum, '(20x,3(2x,ES10.3e2))') u(1,j)%Mesh(k)%Position(1:3,1)
Expand Down

0 comments on commit c5ff09d

Please sign in to comment.