Skip to content
Snippets Groups Projects
Commit 091f65cb authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 15/02/2019: SURFEX: move computation of ZLAND (to prevent use of non initialized values)

parent c8b5c06e
No related branches found
No related tags found
No related merge requests found
!SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
!SFX_LIC Copyright 2004-2019 CNRS, Meteo-France and Universite Paul Sabatier
!SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
!SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!SFX_LIC for details. version 1.
! #####################################
SUBROUTINE GET_TYPE_DIM_n (DTCO, U, &
......@@ -26,6 +26,7 @@
!! MODIFICATIONS
!! -------------
!! Original 01/2004
! P. Wautelet 15/02/2019: move computation of ZLAND (to prevent use of non initialized values)
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
......@@ -99,7 +100,6 @@ ELSE
ZWATER = U%XWATER
ZTOWN = U%XTOWN
END IF
ZLAND = ZTOWN + ZNATURE
!
ALLOCATE(ZFULL(ILU))
ZFULL=1.
......@@ -124,6 +124,7 @@ SELECT CASE (HTYPE)
KDIM = COUNT(ZWATER(:) > 0.)
!
CASE ('LAND ')
ZLAND = ZTOWN + ZNATURE
KDIM = COUNT(ZLAND(:) > 0.)
!
END SELECT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment