SURFEX v8.1
General documentation of Surfex
writesurf_pgd_seaf_parn.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_pgd_seaf_par_n (HSELECT, DTS, HPROGRAM)
7 ! ################################################
8 !
9 !!**** *WRITESURF_PGD_SEAF_PAR_n* - writes SEAFLUX sst
10 !!
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 !! P. Le Moigne *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 09/2007
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
43 !
45 !
47 !
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57 !
58  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
59 !
60 TYPE(data_seaflux_t), INTENT(INOUT) :: DTS
61 !
62  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling
63 !
64 !* 0.2 Declarations of local variables
65 ! -------------------------------
66 !
67 INTEGER :: IRESP ! IRESP : return-code if a problem appears
68  CHARACTER(LEN=12) :: YRECFM ! Name of the article to be read
69  CHARACTER(LEN=100):: YCOMMENT ! Comment string
70 INTEGER :: JTIME ! loop index
71 REAL(KIND=JPRB) :: ZHOOK_HANDLE
72 !
73 !
74 !-------------------------------------------------------------------------------
75 !
76 IF (lhook) CALL dr_hook('WRITESURF_PGD_SEAF_PAR_N',0,zhook_handle)
77 dts%NTIME = SIZE(dts%XDATA_SST,2)
78 yrecfm='ND_SEA_TIME'
79 ycomment='(-)'
80  CALL write_surf(hselect, hprogram,yrecfm,dts%NTIME,iresp,hcomment=ycomment)
81 !
82 DO jtime=1,dts%NTIME
83  WRITE(yrecfm,fmt='(A7,I3.3)') 'D_SST_T',jtime
84  ycomment='X_Y_DATA_SST'
85  CALL write_surf(hselect, hprogram,yrecfm,dts%XDATA_SST(:,jtime),iresp,hcomment=ycomment)
86 END DO
87 !
88 yrecfm='TD_SST'
89 ycomment='(-)'
90  CALL write_surf(hselect, hprogram,yrecfm,dts%TDATA_SST,iresp,hcomment=ycomment)
91 IF (lhook) CALL dr_hook('WRITESURF_PGD_SEAF_PAR_N',1,zhook_handle)
92 !
93 !-------------------------------------------------------------------------------
94 !
95 END SUBROUTINE writesurf_pgd_seaf_par_n
subroutine writesurf_pgd_seaf_par_n(HSELECT, DTS, HPROGRAM)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15