From 5802eb8e0c37d958383d215440474802d9091e11 Mon Sep 17 00:00:00 2001 From: Soren Rasmussen Date: Wed, 6 Nov 2024 13:24:04 -0700 Subject: [PATCH] Fixing if statement logic --- src/OrchestratorLayer/config.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchestratorLayer/config.F90 b/src/OrchestratorLayer/config.F90 index a8be8e2d4..f07109b7c 100644 --- a/src/OrchestratorLayer/config.F90 +++ b/src/OrchestratorLayer/config.F90 @@ -475,7 +475,7 @@ subroutine rt_nlst_check(self) call hydro_stop("Compound channel option not available for diffusive wave routing. ") end if - if ((self%lake_option .lt. 0) .and. (self%lake_option .gt. 3)) then + if ((self%lake_option .lt. 0) .or. (self%lake_option .gt. 3)) then call hydro_stop("Lake Option must be 0 [lakes off], 1 [level pool], or 2 [passthrough], or 3 [reservoir DA]") end if