SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_lclim_lai.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 ! #######################
6  SUBROUTINE read_lclim_lai (&
7  hprogram,oclim_lai)
8 ! #######################
9 !
10 !
11 !
12 !
14 !
15 !
16 USE yomhook ,ONLY : lhook, dr_hook
17 USE parkind1 ,ONLY : jprb
18 !
19 IMPLICIT NONE
20 !
21 !* dummy arguments
22 ! ---------------
23 !
24 !
25 !
26  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
27 LOGICAL, INTENT(OUT) :: oclim_lai ! flag for use of climatologic LAI
28 !
29 !
30 !* local variables
31 ! ---------------
32 !
33  CHARACTER(LEN=12) :: yrecfm ! Name of the article to be read
34 INTEGER :: iresp ! reading return code
35 !
36 INTEGER :: iversion ! surface version
37 INTEGER :: ibugfix ! surface bugfix
38 REAL(KIND=JPRB) :: zhook_handle
39 !
40 !
41 !------------------------------------------------------------------------------
42 !
43 IF (lhook) CALL dr_hook('READ_LCLIM_LAI',0,zhook_handle)
44 yrecfm='VERSION'
45  CALL read_surf(&
46  hprogram,yrecfm,iversion,iresp)
47 yrecfm='BUG'
48  CALL read_surf(&
49  hprogram,yrecfm,ibugfix,iresp)
50 !
51 IF (iversion<4 .OR. iversion==4 .AND. ibugfix==2) THEN
52  oclim_lai = .false.
53 ELSE
54  yrecfm='LCLIM_LAI'
55  CALL read_surf(&
56  hprogram,yrecfm,oclim_lai,iresp)
57 END IF
58 IF (lhook) CALL dr_hook('READ_LCLIM_LAI',1,zhook_handle)
59 !
60 !------------------------------------------------------------------------------
61 !
62 END SUBROUTINE read_lclim_lai
subroutine read_lclim_lai(HPROGRAM, OCLIM_LAI)