Skip to content

Commit

Permalink
Fix seg-fault with DBEMT_Mod=-1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-platt committed Sep 18, 2024
1 parent c67de45 commit 040d6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aerodyn/src/BEMT.f90
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ subroutine BEMT_UpdateStates( t, n, u, utimes, p, x, xd, z, OtherState, AFInfo,
!...............................................................................................................................
! update DBEMT states to step n+1
!...............................................................................................................................
if (p%DBEMT_Mod /= DBEMT_none) then
if (p%DBEMT_Mod > DBEMT_none) then

!........................
! update DBEMT states to t+dt
Expand All @@ -956,7 +956,7 @@ subroutine BEMT_UpdateStates( t, n, u, utimes, p, x, xd, z, OtherState, AFInfo,
!............................................
! apply DBEMT correction to axInduction and tanInduction:
!............................................
if (p%DBEMT_Mod /= DBEMT_none) then
if (p%DBEMT_Mod > DBEMT_none) then
call calculate_Inductions_from_DBEMT_AllNodes(TimeIndex_t_plus_dt, uTimes(TimeIndex_t_plus_dt), u(TimeIndex_t_plus_dt), p, x, OtherState, m, m%axInduction, m%tanInduction)
end if

Expand Down

0 comments on commit 040d6be

Please sign in to comment.