From 15811c2d0780748036e6b61d3892fe5e8eef539f Mon Sep 17 00:00:00 2001 From: Biao Zhao Date: Mon, 22 Sep 2025 10:02:20 -0400 Subject: [PATCH] Set minimum value for rough_mom and rough_heat to prevent NaN/Inf in calculations --- land_model.F90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/land_model.F90 b/land_model.F90 index 44c6dd2..4e0e460 100644 --- a/land_model.F90 +++ b/land_model.F90 @@ -351,8 +351,8 @@ subroutine land_model_init (cplr2land, land2cplr, time_init, time, dt_fast, dt_s land2cplr%albedo_nir_dir = 0.0 land2cplr%albedo_vis_dif = 0.0 land2cplr%albedo_nir_dif = 0.0 - land2cplr%rough_mom = 0.0 - land2cplr%rough_heat = 0.0 + land2cplr%rough_mom = 1.0e-6 + land2cplr%rough_heat = 1.0e-6 land2cplr%rough_scale = 1.0 land2cplr%discharge = 0.0 land2cplr%discharge_heat = 0.0