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

Annotation of /MITgcm/pkg/rw/read_fld_xyz_rs.F

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


Revision 1.4 - (hide annotations) (download)
Tue Nov 13 19:41:05 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint60, checkpoint61, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59k, checkpoint61f, checkpoint61n, checkpoint61q, checkpoint61e, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p
Changes since 1.3: +11 -6 lines
cleaning-up: call directly new MDSIO S/R MDS_READ/WRITE_FIELD

1 jmc 1.4 C $Header: /u/gcmpack/MITgcm/pkg/rw/read_fld_xyz_rs.F,v 1.3 2006/08/04 02:48:05 jmc Exp $
2 jmc 1.2 C $Name: $
3 adcroft 1.1
4 jmc 1.2 #include "RW_OPTIONS.h"
5 adcroft 1.1
6     SUBROUTINE READ_FLD_XYZ_RS( pref,suff,field,myIter,myThid)
7     C READ_FLD_XYZ_RS is a "front-end" interface to the low-level I/O
8     C routines. It assumes single record files.
9     IMPLICIT NONE
10     C Global
11     #include "SIZE.h"
12     #include "EEPARAMS.h"
13     #include "PARAMS.h"
14     C Arguments
15     CHARACTER*(*) pref,suff
16     _RS field(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr,nSx,nSy)
17     INTEGER myIter
18     INTEGER myThid
19     C Functions
20     INTEGER ILNBLNK,IFNBLNK
21     C Local
22 jmc 1.4 LOGICAL useCurrentDir
23 adcroft 1.1 CHARACTER*(2) fType
24     INTEGER nNz
25 jmc 1.4 INTEGER iRec
26 adcroft 1.1 INTEGER s1Lo,s1Hi,s2Lo,s2Hi
27 jmc 1.3 CHARACTER*(MAX_LEN_FNAM) fullName
28 adcroft 1.1 C
29     C-- Build file name
30     C Name has form 'prefix.suffix'
31     C e.g. U.0000000100
32     s1Lo = IFNBLNK(pref)
33     s1Hi = ILNBLNK(pref)
34     IF ( suff .EQ. ' ' ) THEN
35     WRITE( fullName, '(A)' ) pref(s1Lo:s1Hi)
36     ELSE
37     s2Lo = IFNBLNK(suff)
38     s2Hi = ILNBLNK(suff)
39     WRITE( fullName, '(A,A)' ) pref(s1Lo:s1Hi),suff(s2Lo:s2Hi)
40     ENDIF
41 jmc 1.4
42     useCurrentDir = .FALSE.
43 adcroft 1.1 fType='RS'
44     nNz=Nr
45 jmc 1.4 iRec=1
46 jmc 1.2 #ifdef ALLOW_MDSIO
47 jmc 1.4 CALL MDS_READ_FIELD(
48     I fullName, readBinaryPrec, useCurrentDir,
49     I fType, nNz, 1, nNz,
50     O field,
51     I iRec, myThid )
52 jmc 1.2 #endif
53 adcroft 1.1 RETURN
54     END

  ViewVC Help
Powered by ViewVC 1.1.22