From 7fa1ae25e6b3866c353d5976e7ac68f597bf73af Mon Sep 17 00:00:00 2001 From: dzalkind Date: Wed, 10 Jan 2024 14:58:54 -0700 Subject: [PATCH] Don't check ZMQ period if no ZMQ_Mode --- rosco/controller/src/ReadSetParameters.f90 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rosco/controller/src/ReadSetParameters.f90 b/rosco/controller/src/ReadSetParameters.f90 index fb159d2e..36db8c4b 100644 --- a/rosco/controller/src/ReadSetParameters.f90 +++ b/rosco/controller/src/ReadSetParameters.f90 @@ -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 -------------------------------------------------