Skip to content

Commit

Permalink
Finish making error tracing consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed May 17, 2021
1 parent c88f272 commit 008d34a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controllers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ SUBROUTINE PitchControl(avrSWAP, CntrPar, LocalVar, objInst, DebugVar, ErrVar)
avrSWAP(44) = LocalVar%PitCom(3) ! "
avrSWAP(45) = LocalVar%PitCom(1) ! Use the command angle of blade 1 if using collective pitch

! Error Catching
IF (ErrVar%aviFAIL == -1) THEN
ErrVar%ErrMsg = 'PitchControl:'//TRIM(ErrVar%ErrMsg)
END IF
! Add RoutineName to error message
IF (ErrVar%aviFAIL < 0) THEN
ErrVar%ErrMsg = RoutineName//':'//TRIM(ErrVar%ErrMsg)
ENDIF

END SUBROUTINE PitchControl
!-------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 008d34a

Please sign in to comment.