Skip to content

Commit

Permalink
Don't check ZMQ period if no ZMQ_Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jan 10, 2024
1 parent 45aad14 commit 7fa1ae2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rosco/controller/src/ReadSetParameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,11 @@ SUBROUTINE CheckInputs(LocalVar, CntrPar, avrSWAP, ErrVar, size_avcMSG)
ErrVar%ErrMsg = 'DT_Out must be a factor of DT in OpenFAST'
ENDIF

IF (ABS(CntrPar%ZMQ_UpdatePeriod - Localvar%DT * CntrPar%n_DT_ZMQ) > 0.001_DbKi) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'ZMQ_UpdatePeriod must be a factor of DT in OpenFAST'
IF (CntrPar%ZMQ_Mode > 0) THEN
IF (ABS(CntrPar%ZMQ_UpdatePeriod - Localvar%DT * CntrPar%n_DT_ZMQ) > 0.001_DbKi) THEN
ErrVar%aviFAIL = -1
ErrVar%ErrMsg = 'ZMQ_UpdatePeriod must be a factor of DT in OpenFAST'
ENDIF
ENDIF
!------- CONTROLLER FLAGS -------------------------------------------------

Expand Down

0 comments on commit 7fa1ae2

Please sign in to comment.