SURFEX v8.1
General documentation of Surfex
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, HPROGRAM)
7 ! #############################################################
8 !
9 !!**** *PGD_SEA* - routine to choose initialization of sea scheme
10 !! PURPOSE
11 !! -------
12 !!
13 !!** METHOD
14 !! ------
15 !!
16 !! EXTERNAL
17 !! --------
18 !!
19 !!
20 !! IMPLICIT ARGUMENTS
21 !! ------------------
22 !!
23 !! REFERENCE
24 !! ---------
25 !!
26 !!
27 !! AUTHOR
28 !! ------
29 !! V. Masson *Meteo France*
30 !!
31 !! MODIFICATIONS
32 !! -------------
33 !! Original 03/2004
34 !-------------------------------------------------------------------------------
35 !
36 !* 0. DECLARATIONS
37 ! ------------
38 !
39 !
40 !
41 !
44 USE modd_sfx_grid_n, ONLY : grid_t
45 USE modd_seaflux_n, ONLY : seaflux_t
47 USE modd_surf_atm_n, ONLY : surf_atm_t
48 USE modd_sso_n, ONLY : sso_t
49 !
50 USE modi_pgd_seaflux
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 !
63 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
64 TYPE(data_seaflux_t), INTENT(INOUT) :: DTS
65 TYPE(grid_t), INTENT(INOUT) :: SG
66 TYPE(seaflux_t), INTENT(INOUT) :: S
67 TYPE(surf_atm_grid_t), INTENT(INOUT) :: UG
68 TYPE(surf_atm_t), INTENT(INOUT) :: U
69 TYPE(sso_t), INTENT(INOUT) :: USS
70 !
71  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
72 REAL(KIND=JPRB) :: ZHOOK_HANDLE
73 !
74 !
75 !* 0.2 Declarations of local variables
76 ! -------------------------------
77 !
78 !-------------------------------------------------------------------------------
79 !
80 !* 2. Selection of surface scheme
81 ! ---------------------------
82 !
83 IF (lhook) CALL dr_hook('PGD_SEA',0,zhook_handle)
84 IF (u%CSEA=='NONE ') THEN
85  IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
86  RETURN
87 ELSE IF (u%CSEA=='FLUX ') THEN
88  IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
89  RETURN
90 ELSE IF (u%CSEA=='SEAFLX') THEN
91  CALL pgd_seaflux(dtco, dts, sg, s, ug, u, uss, hprogram)
92 END IF
93 IF (lhook) CALL dr_hook('PGD_SEA',1,zhook_handle)
94 !
95 !-------------------------------------------------------------------------------
96 !
97 END SUBROUTINE pgd_sea
integer, parameter jprb
Definition: parkind1.F90:32
subroutine pgd_seaflux(DTCO, DTS, SG, S, UG, U, USS, HPROGRAM)
Definition: pgd_seaflux.F90:8
logical lhook
Definition: yomhook.F90:15
subroutine pgd_sea(DTCO, DTS, SG, S, UG, U, USS, HPROGRAM)
Definition: pgd_sea.F90:7