SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
writesurf_seaflux_confn.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 writesurf_seaflux_conf_n (CHS, DGO, DGSI, O, S, &
7  hprogram)
8 ! ######################################################
9 !
10 !!**** *WRITESURF_SEAFLUX_CONF* - routine to read the configuration for SEAFLUX
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 09/2013 : S. Senesi : handle seaice scheme
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 !
43 !
44 !
45 !
46 !
50 USE modd_ocean_n, ONLY : ocean_t
51 USE modd_seaflux_n, ONLY : seaflux_t
52 !
54 USE modn_slt
55 !
56 USE modi_get_default_nam_n
57 !
58 !
59 USE yomhook ,ONLY : lhook, dr_hook
60 USE parkind1 ,ONLY : jprb
61 !
62 IMPLICIT NONE
63 !
64 !* 0.1 Declarations of arguments
65 ! -------------------------
66 !
67 !
68 TYPE(ch_seaflux_t), INTENT(INOUT) :: chs
69 TYPE(diag_ocean_t), INTENT(INOUT) :: dgo
70 TYPE(diag_seaice_t), INTENT(INOUT) :: dgsi
71 TYPE(ocean_t), INTENT(INOUT) :: o
72 TYPE(seaflux_t), INTENT(INOUT) :: s
73 !
74  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling SEAFLUX
75 
76 !
77 !* 0.2 Declarations of local variables
78 ! -------------------------------
79 !
80 INTEGER :: iludes
81 REAL(KIND=JPRB) :: zhook_handle
82 !
83 !-------------------------------------------------------------------------------
84 !
85 IF (lhook) CALL dr_hook('WRITESURF_SEAFLUX_CONF_N',0,zhook_handle)
86  CALL get_default_nam_n(hprogram,'WRITE',iludes)
87 !
88 IF (iludes==0 .AND. lhook) CALL dr_hook('WRITESURF_SEAFLUX_CONF_N',1,zhook_handle)
89 IF (iludes==0) RETURN
90 !
91 !-------------------------------------------------------------------------------
92 !
93  CALL init_nam_seafluxn(o, s)
94  CALL init_nam_ch_seafluxn(chs)
95  CALL init_nam_diag_oceann(dgo)
96  CALL init_nam_seaicen(dgsi, s)
97 !
98 WRITE(unit=iludes,nml=nam_seafluxn)
99 WRITE(unit=iludes,nml=nam_ch_seafluxn)
100 WRITE(unit=iludes,nml=nam_diag_oceann)
101 WRITE(unit=iludes,nml=nam_seaicen)
102 WRITE(unit=iludes,nml=nam_surf_slt)
103 IF (lhook) CALL dr_hook('WRITESURF_SEAFLUX_CONF_N',1,zhook_handle)
104 !
105 !-------------------------------------------------------------------------------
106 !
107 END SUBROUTINE writesurf_seaflux_conf_n
subroutine writesurf_seaflux_conf_n(CHS, DGO, DGSI, O, S, HPROGRAM)
subroutine init_nam_ch_seafluxn(CHS)
subroutine init_nam_seaicen(DGSI, S)
subroutine init_nam_diag_oceann(DGO)
subroutine init_nam_seafluxn(O, S)
subroutine get_default_nam_n(HPROGRAM, HACTION, KLUDES)