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

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

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


Revision 1.1 - (show annotations) (download)
Tue Dec 21 23:44:45 2010 UTC (13 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, HEAD
new S/R READ_GLVEC_RL/RS to read a global (tile independent) vector
 (read counterpart of WRITE_GLVEC_RL/RS)

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

  ViewVC Help
Powered by ViewVC 1.1.22