SURFEX v8.1
General documentation of Surfex
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%NDIM_FULL, nfull)
73 !
74  CALL get_size_full_n('TEXTE ',nfull,u%NSIZE_FULL,ilu)
75 !
76 il = ilu
77  CALL get_type_dim_n(dtco, u, &
78  hmask,il)
79  CALL init_io_surf_mask_n(dtco, u, &
80  hmask, il, iluout, ilu, nmask)
81 !
82 CMASK = HMASK
83 IF (lhook) CALL dr_hook('INIT_IO_SURF_TXT_N',1,zhook_handle)
84 !------------------------------------------------------------------------------
85 !
86 END SUBROUTINE init_io_surf_txt_n
subroutine get_type_dim_n(DTCO, U, HTYPE, KDIM)
subroutine get_dim_full_n(KDIM_FULL_IN, KDIM_FULL_OUT)
subroutine init_io_surf_txt_n(DTCO, U, HMASK, HACTION)
subroutine get_size_full_n(HPROGRAM, KDIM_FULL, KSIZE_FULL_IN, KSIZE
integer, parameter jprb
Definition: parkind1.F90:32
integer, dimension(:), pointer nmask
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15
character(len=6) cmask
subroutine init_io_surf_mask_n(DTCO, U, HMASK, KSIZE, KLUOUT, KFULL, KMASK)