From 0c0ff9800be36af10f4d691061bc19dd5de52d12 Mon Sep 17 00:00:00 2001 From: "Christina.Holt" Date: Wed, 14 Apr 2021 20:01:34 +0000 Subject: [PATCH] Fix for seg fault in forecast step with GEFS. --- sorc/chgres_cube.fd/surface.F90 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sorc/chgres_cube.fd/surface.F90 b/sorc/chgres_cube.fd/surface.F90 index 2b15950c9..cba84fd02 100644 --- a/sorc/chgres_cube.fd/surface.F90 +++ b/sorc/chgres_cube.fd/surface.F90 @@ -3939,6 +3939,10 @@ subroutine qc_check do j = clb(2), cub(2) do i = clb(1), cub(1) if (veg_greenness_ptr(i,j) <= 0.01) data_ptr(i,j) = 0.0 + if (data_ptr(i,j) > 0.5) then + print*,"- ZERO OUT TARGET GRID CANOPY MOISTURE CONTENT WITH UNREALISTIC VALUES" + data_ptr(i,j) = 0.0 + endif enddo enddo