SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
pgd_sea.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 pgd_sea (DTCO, DTS, SG, S, UG, U, USS, &
7  hprogram)
8 ! #############################################################
9 !
10 !!**** *PGD_SEA* - routine to choose initialization of sea scheme
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 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 03/2004
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
41 !
42 !
46 USE modd_seaflux_n, ONLY : seaflux_t
48 USE modd_surf_atm_n, ONLY : surf_atm_t
50 !
51 USE modi_pgd_seaflux
52 !
53 !
54 USE yomhook ,ONLY : lhook, dr_hook
55 USE parkind1 ,ONLY : jprb
56 !
57 IMPLICIT NONE
58 !
59 !* 0.1 Declarations of arguments
60 ! -------------------------
61 !
62 !
63 !
64 TYPE(data_cover_t), INTENT(INOUT) :: dtco
65 TYPE(data_seaflux_t), INTENT(INOUT) :: dts
66 TYPE(seaflux_grid_t), INTENT(INOUT) :: sg
67 TYPE(seaflux_t), INTENT(INOUT) :: s
68 TYPE(surf_atm_grid_t), INTENT(INOUT) :: ug
69 TYPE(surf_atm_t), INTENT(INOUT) :: u
70 TYPE(surf_atm_sso_t), INTENT(INOUT) :: uss
71 !
72  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
73 REAL(KIND=JPRB) :: zhook_handle
74 !
75 !
76 !* 0.2 Declarations of local variables
77 ! -------------------------------
78 !
79 !-------------------------------------------------------------------------------
80 !
81 !* 2. Selection of surface scheme
82 ! ---------------------------
83 !
84 IF (lhook) CALL dr_hook('PGD_SEA',0,zhook_handle)
85 IF (u%CSEA=='NONE ') THEN
86  IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
87  RETURN
88 ELSE IF (u%CSEA=='FLUX ') THEN
89  IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
90  RETURN
91 ELSE IF (u%CSEA=='SEAFLX') THEN
92  CALL pgd_seaflux(dtco, dts, sg, s, ug, u, uss, &
93  hprogram)
94 END IF
95 IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
96 !
97 !-------------------------------------------------------------------------------
98 !
99 END SUBROUTINE pgd_sea
subroutine pgd_seaflux(DTCO, DTS, SG, S, UG, U, USS, HPROGRAM)
Definition: pgd_seaflux.F90:6
subroutine pgd_sea(DTCO, DTS, SG, S, UG, U, USS, HPROGRAM)
Definition: pgd_sea.F90:6