From 0e3a3d3dbe21d4c7e55a44f86e39da61a6fe2f44 Mon Sep 17 00:00:00 2001 From: Kyle Klenk <kyle.c.klenk@gmail.com> Date: Tue, 2 Apr 2024 20:51:41 +0000 Subject: [PATCH] fix timestep issue --- build/source/hru_actor/hru_modelRun.f90 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/source/hru_actor/hru_modelRun.f90 b/build/source/hru_actor/hru_modelRun.f90 index 0ec7728..e4bc6ce 100644 --- a/build/source/hru_actor/hru_modelRun.f90 +++ b/build/source/hru_actor/hru_modelRun.f90 @@ -211,7 +211,12 @@ subroutine runPhysics(& !****************************** From run_oneHRU ******************************* !****************************************************************************** ! water pixel: do nothing - if (hru_data%typeStruct%var(iLookTYPE%vegTypeIndex) == isWater) return + if (hru_data%typeStruct%var(iLookTYPE%vegTypeIndex) == isWater) then + ! Set wall_clock time to zero so it does not get a random value + wallTimeTimeStep = 0._dp + hru_data%diagStruct%var(iLookDIAG%wallClockTime)%dat(1) = 0._dp + return + endif ! get height at bottom of each soil layer, negative downwards (used in Noah MP) allocate(zSoilReverseSign(nSoil),stat=err) -- GitLab