SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
init_io_surf_txtn.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 init_io_surf_txt_n (DTCO, U, &
7  hmask,haction)
8 ! ######################
9 !
10 !!**** *INIT_IO_SURF_TXT_n* Keep in memory the output files
11 !!
12 !! PURPOSE
13 !! -------
14 !
15 !!
16 !!** IMPLICIT ARGUMENTS
17 !! ------------------
18 !! None
19 !!
20 !! REFERENCE
21 !! ---------
22 !!
23 !! AUTHOR
24 !! ------
25 !! V. Masson *Meteo France*
26 !!
27 !! MODIFICATIONS
28 !! -------------
29 !!
30 !! P. Le Moigne 04/2004: distinguish in and out file name
31 !! P. Le Moigne 04/2006: special HACTION='GTMSK' to initialize
32 !! a mask different of 'FULL ' in order
33 !! to read dimensions only.
34 !
35 !* 0. DECLARATIONS
36 ! ------------
37 !
38 !
39 !
40 !
41 !
43 USE modd_surf_atm_n, ONLY : surf_atm_t
44 !
45 USE modd_io_surf_txt, ONLY : nmask, nfull, cmask
46 !
47 USE modi_get_luout
48 USE modi_get_dim_full_n
49 USE modi_get_size_full_n
50 USE modi_get_type_dim_n
51 USE modi_init_io_surf_mask_n
52 !
53 USE yomhook ,ONLY : lhook, dr_hook
54 USE parkind1 ,ONLY : jprb
55 !
56 IMPLICIT NONE
57 !
58 !
59 TYPE(data_cover_t), INTENT(INOUT) :: dtco
60 TYPE(surf_atm_t), INTENT(INOUT) :: u
61 !
62  CHARACTER(LEN=6), INTENT(IN) :: hmask
63  CHARACTER(LEN=5), INTENT(IN) :: haction
64 !
65 INTEGER :: ilu,iret, il, iluout
66 REAL(KIND=JPRB) :: zhook_handle
67 !------------------------------------------------------------------------------
68 IF (lhook) CALL dr_hook('INIT_IO_SURF_TXT_N',0,zhook_handle)
69 !
70  CALL get_luout('TEXTE ',iluout)
71 !
72  CALL get_dim_full_n(u, &
73  nfull)
74 !
75  CALL get_size_full_n(u, &
76  'TEXTE ',nfull,ilu)
77 !
78 il = ilu
79  CALL get_type_dim_n(dtco, u, &
80  hmask,il)
81  CALL init_io_surf_mask_n(dtco, u, &
82  hmask, il, iluout, ilu, nmask)
83 !
84  cmask = hmask
85 IF (lhook) CALL dr_hook('INIT_IO_SURF_TXT_N',1,zhook_handle)
86 !------------------------------------------------------------------------------
87 !
88 END SUBROUTINE init_io_surf_txt_n
subroutine get_type_dim_n(DTCO, U, HTYPE, KDIM)
subroutine get_dim_full_n(U, KDIM_FULL)
subroutine init_io_surf_txt_n(DTCO, U, HMASK, HACTION)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine get_size_full_n(U, HPROGRAM, KDIM_FULL, KSIZE_FULL)
subroutine init_io_surf_mask_n(DTCO, U, HMASK, KSIZE, KLUOUT, KFULL, KMASK)