Skip to content

Commit

Permalink
Fixing if statement logic
Browse files Browse the repository at this point in the history
  • Loading branch information
scrasmussen committed Dec 19, 2024
1 parent ebec658 commit 5802eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrchestratorLayer/config.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5802eb8

Please sign in to comment.