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 44c1549 commit 07577fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ROSCO/src/ReadSetParameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,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 07577fc

Please sign in to comment.