/[MITgcm]/MITgcm/pkg/rw/write_glvec_rs.F
ViewVC logotype

Contents of /MITgcm/pkg/rw/write_glvec_rs.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Feb 4 22:55:51 2009 UTC (15 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61i, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q
Changes since 1.1: +2 -2 lines
fix wrong fType

1 C $Header: /u/gcmpack/MITgcm/pkg/rw/write_glvec_rs.F,v 1.1 2009/02/03 22:21:15 jmc Exp $
2 C $Name: $
3
4 #include "RW_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: WRITE_GLVEC_RS
8 C !INTERFACE:
9 SUBROUTINE WRITE_GLVEC_RS(
10 I pref, suff, array, sizArr, myIter, myThid )
11
12 C !DESCRIPTION:
13 C WRITE_GLVEC_RS
14 C is a "front-end" interface to the low-level MDS I/O routines.
15 C Writes a global (=tile independent) vector.
16
17 C !USES:
18 IMPLICIT NONE
19
20 C == Global Variables
21 #include "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24
25 C !INPUT PARAMETERS:
26 CHARACTER*(*) pref,suff
27 INTEGER sizArr
28 _RS array(sizArr)
29 INTEGER myIter
30 INTEGER myThid
31
32 C !FUNCTIONS:
33 INTEGER ILNBLNK, IFNBLNK
34 EXTERNAL ILNBLNK, IFNBLNK
35
36 C !LOCAL VARIABLES:
37 CHARACTER*(2) fType
38 INTEGER ioUnit, bi, bj, iRec
39 INTEGER s1Lo,s1Hi,s2Lo,s2Hi
40 CHARACTER*(MAX_LEN_FNAM) fullName
41 CEOP
42
43 C-- Build file name
44 C Name has form 'prefix.suffix'
45 C e.g. U.0000000100
46 s1Lo = IFNBLNK(pref)
47 s1Hi = ILNBLNK(pref)
48 IF ( suff .EQ. ' ' ) THEN
49 WRITE( fullName, '(A)' ) pref(s1Lo:s1Hi)
50 ELSE
51 s2Lo = IFNBLNK(suff)
52 s2Hi = ILNBLNK(suff)
53 WRITE( fullName, '(A,A)' ) pref(s1Lo:s1Hi),suff(s2Lo:s2Hi)
54 ENDIF
55
56 ioUnit = 0
57 fType ='RS'
58 bi = 0
59 bj = 0
60 iRec = 1
61 #ifdef ALLOW_MDSIO
62 CALL MDS_WRITEVEC_LOC(
63 I fullName, writeBinaryPrec, ioUnit,
64 I fType, sizArr, array,
65 I bi, bj, iRec, myIter, myThid )
66 #endif
67
68 RETURN
69 END

  ViewVC Help
Powered by ViewVC 1.1.22