SURFEX v8.1
General documentation of Surfex
write_pgd_naturen.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 write_pgd_nature_n (DTCO, HSELECT, U, DTZ, IM, HPROGRAM)
7 ! ####################################
8 !
9 !!**** *WRITE_PGD_NATURE_n* - routine to write pgd surface variables in their respective files
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! B. Decharme *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 05/2011
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
42 USE modd_surf_atm_n, ONLY : surf_atm_t
43 !
44 USE modd_data_tsz0_n, ONLY : data_tsz0_t
45 USE modd_surfex_n, ONLY : isba_model_t
46 !
47 USE modi_write_pgd_isba_n
48 !
49 !
50 USE yomhook ,ONLY : lhook, dr_hook
51 USE parkind1 ,ONLY : jprb
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 Declarations of arguments
56 ! -------------------------
57 !
58 !
59 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
60 TYPE(surf_atm_t), INTENT(INOUT) :: U
61 !
62  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
63 !
64 TYPE(data_tsz0_t), INTENT(INOUT) :: DTZ
65 TYPE(isba_model_t), INTENT(INOUT) :: IM
66 !
67  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
68 REAL(KIND=JPRB) :: ZHOOK_HANDLE
69 ! ! 'ALL' : all fields are written
70 !
71 !* 0.2 Declarations of local variables
72 ! -------------------------------
73 !
74 !-------------------------------------------------------------------------------
75 !
76 !* 1. Selection of surface scheme
77 ! ---------------------------
78 !
79 IF (lhook) CALL dr_hook('WRITE_PGD_NATURE_N',0,zhook_handle)
80 IF (u%CNATURE=='ISBA' .OR. u%CNATURE=='TSZ0') THEN
81  CALL write_pgd_isba_n(dtco, hselect, u, dtz, im, hprogram)
82 END IF
83 IF (lhook) CALL dr_hook('WRITE_PGD_NATURE_N',1,zhook_handle)
84 !
85 !-------------------------------------------------------------------------------
86 !
87 END SUBROUTINE write_pgd_nature_n
subroutine write_pgd_isba_n(DTCO, HSELECT, U, DTZ, IM, HPROGRAM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine write_pgd_nature_n(DTCO, HSELECT, U, DTZ, IM, HPROGRAM
logical lhook
Definition: yomhook.F90:15