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