SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_diag_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_diag_nature_n (DTCO, DGU, U, IM, DST, &
7  hprogram,hwrite)
8 ! ###############################################################################
9 !
10 !!**** *WRITE_DIAG_NATURE_n * - Chooses the surface schemes for diagnostics over
11 !! natural continental parts
12 !!
13 !! PURPOSE
14 !! -------
15 !
16 !!** METHOD
17 !! ------
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !!
23 !! AUTHOR
24 !! ------
25 !! V. Masson
26 !!
27 !! MODIFICATIONS
28 !! -------------
29 !! Original 01/2004
30 !!------------------------------------------------------------------
31 !
32 !
35 USE modd_surf_atm_n, ONLY : surf_atm_t
36 USE modd_surfex_n, ONLY : isba_model_t
37 USE modd_dst_n, ONLY : dst_t
38 !
39 USE modd_surf_par, ONLY : xundef
40 !
41 USE modi_write_diag_isba_n
42 !
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 IMPLICIT NONE
48 !
49 !* 0.1 declarations of arguments
50 !
51 !
52 TYPE(data_cover_t), INTENT(INOUT) :: dtco
53 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
54 TYPE(surf_atm_t), INTENT(INOUT) :: u
55 TYPE(isba_model_t), INTENT(INOUT) :: im
56 TYPE(dst_t), INTENT(INOUT) :: dst
57 !
58  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
59  CHARACTER(LEN=3), INTENT(IN) :: hwrite ! 'PGD' : only physiographic fields are written
60 REAL(KIND=JPRB) :: zhook_handle
61 ! ! 'ALL' : all fields are written
62 !
63 !
64 !* 0.2 declarations of local variables
65 !
66 !-------------------------------------------------------------------------------------
67 !
68 IF (lhook) CALL dr_hook('WRITE_DIAG_NATURE_N',0,zhook_handle)
69 IF (u%CNATURE=='ISBA ') THEN
70  CALL write_diag_isba_n(dtco, dgu, u, im, dst, &
71  hprogram,hwrite)
72 END IF
73 IF (lhook) CALL dr_hook('WRITE_DIAG_NATURE_N',1,zhook_handle)
74 !
75 !-------------------------------------------------------------------------------------
76 !
77 END SUBROUTINE write_diag_nature_n
subroutine write_diag_nature_n(DTCO, DGU, U, IM, DST, HPROGRAM, HWRITE)
subroutine write_diag_isba_n(DTCO, DGU, U, IM, DST, HPROGRAM, HWRITE)