Skip to content

Commit

Permalink
Only check FlpCornerFreq if using Flp control, fixes example 05
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind authored and nikhar-abbas committed Jun 29, 2021
1 parent a552a8d commit 2ec4e79
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions ROSCO/src/ReadSetParameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -618,16 +618,18 @@ SUBROUTINE CheckInputs(LocalVar, CntrPar, avrSWAP, ErrVar, size_avcMSG)
ErrVar%ErrMsg = 'F_FlCornerFreq(2) must be greater than zero.'
ENDIF

! F_FlpCornerFreq(1) (frequency)
IF (CntrPar%F_FlpCornerFreq(1) <= 0.0) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'F_FlpCornerFreq(1) must be greater than zero.'
ENDIF
IF (CntrPar%Flp_Mode > 0) THEN
! F_FlpCornerFreq(1) (frequency)
IF (CntrPar%F_FlpCornerFreq(1) <= 0.0) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'F_FlpCornerFreq(1) must be greater than zero.'
ENDIF

! F_FlpCornerFreq(2) (damping)
IF (CntrPar%F_FlpCornerFreq(2) <= 0.0) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'F_FlpCornerFreq(2) must be greater than zero.'
! F_FlpCornerFreq(2) (damping)
IF (CntrPar%F_FlpCornerFreq(2) < 0.0) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'F_FlpCornerFreq(2) must be greater than or equal to zero.'
ENDIF
ENDIF


Expand Down

0 comments on commit 2ec4e79

Please sign in to comment.