SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_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_nature_n (DTCO, DGU, U, IM, DST, &
7  hprogram,hwrite,oland_use)
8 ! ####################################
9 !
10 !!**** *WRITE_NATURE_n* - routine to write 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 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 01/2003
36 ! Modified 07/2011, B.Decharme: land_use key for writing semi-prognostic variables
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
44 USE modd_surf_atm_n, ONLY : surf_atm_t
45 USE modd_surfex_n, ONLY : isba_model_t
46 USE modd_dst_n, ONLY : dst_t
47 !
48 USE modi_write_isba_n
49 !
50 !
51 USE yomhook ,ONLY : lhook, dr_hook
52 USE parkind1 ,ONLY : jprb
53 !
54 IMPLICIT NONE
55 !
56 !* 0.1 Declarations of arguments
57 ! -------------------------
58 !
59 !
60 TYPE(data_cover_t), INTENT(INOUT) :: dtco
61 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
62 TYPE(surf_atm_t), INTENT(INOUT) :: u
63 TYPE(isba_model_t), INTENT(INOUT) :: im
64 TYPE(dst_t), INTENT(INOUT) :: dst
65 !
66  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
67  CHARACTER(LEN=3), INTENT(IN) :: hwrite ! 'PREP' : does not write SBL XUNDEF fields
68 ! ! 'ALL' : all fields are written
69 LOGICAL, INTENT(IN) :: oland_use !
70 !
71 !* 0.2 Declarations of local variables
72 ! -------------------------------
73 !
74 REAL(KIND=JPRB) :: zhook_handle
75 !-------------------------------------------------------------------------------
76 !
77 !* 1. Selection of surface scheme
78 ! ---------------------------
79 !
80 IF (lhook) CALL dr_hook('WRITE_NATURE_N',0,zhook_handle)
81 IF (u%CNATURE=='ISBA' .OR. u%CNATURE=='TSZ0') THEN
82  CALL write_isba_n(dtco, dgu, u, im, dst, &
83  hprogram,hwrite,oland_use)
84 END IF
85 IF (lhook) CALL dr_hook('WRITE_NATURE_N',1,zhook_handle)
86 !
87 !-------------------------------------------------------------------------------
88 !
89 END SUBROUTINE write_nature_n
subroutine write_isba_n(DTCO, DGU, U, IM, DST, HPROGRAM, HWRITE, OLAND_USE)
Definition: write_isban.F90:6
subroutine write_nature_n(DTCO, DGU, U, IM, DST, HPROGRAM, HWRITE, OLAND_USE)