Skip to content

Commit

Permalink
AD15 driver: segmentation fault with intel compiler when no blades
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-platt committed Oct 16, 2023
1 parent 3409efe commit 20d1887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/aerodyn/src/AeroDyn.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2848,6 +2848,8 @@ subroutine DiskAvgValues(p, u, m, x_hat_disk, y_hat_disk, z_hat_disk, Azimuth)
! calculate disk-averaged velocities
m%AvgDiskVel = 0.0_ReKi
m%AvgDiskVelDist = 0.0_ReKi ! TODO potentially get rid of that in the future
if (p%NumBlades <= 0) return ! The Intel compiler gets array bounds issues in this routine with no blades.

do k=1,p%NumBlades
do j=1,p%NumBlNds
m%AvgDiskVelDist = m%AvgDiskVelDist + m%DisturbedInflow(:,j,k)
Expand Down

0 comments on commit 20d1887

Please sign in to comment.