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

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

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


Revision 1.3 - (hide annotations) (download)
Fri Aug 4 02:48:05 2006 UTC (17 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint58t_post, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59i, checkpoint59h, checkpoint58v_post, checkpoint58x_post, checkpoint59j, checkpoint58u_post, checkpoint58s_post
Changes since 1.2: +2 -2 lines
use MAX_LEN_FNAM for file name length (replaces fixed length of 80.c)

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/rw/read_fld_xy_rl.F,v 1.2 2005/08/22 23:00:58 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_XY_RL( pref,suff,field,myIter,myThid)
7     C READ_FLD_XY_RL 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     _RL field(1-Olx:sNx+Olx,1-Oly:sNy+Oly,nSx,nSy)
17     INTEGER myIter
18     INTEGER myThid
19     C Functions
20     INTEGER ILNBLNK,IFNBLNK
21     C Local
22     CHARACTER*(2) fType
23     INTEGER nNz
24     INTEGER irec
25     INTEGER s1Lo,s1Hi,s2Lo,s2Hi
26 jmc 1.3 CHARACTER*(MAX_LEN_FNAM) fullName
27 adcroft 1.1 C
28     C-- Build file name
29     C Name has form 'prefix.suffix'
30     C e.g. U.0000000100
31     s1Lo = IFNBLNK(pref)
32     s1Hi = ILNBLNK(pref)
33     IF ( suff .EQ. ' ' ) THEN
34     WRITE( fullName, '(A)' ) pref(s1Lo:s1Hi)
35     ELSE
36     s2Lo = IFNBLNK(suff)
37     s2Hi = ILNBLNK(suff)
38     WRITE( fullName, '(A,A)' ) pref(s1Lo:s1Hi),suff(s2Lo:s2Hi)
39     ENDIF
40     C
41     fType='RL'
42     nNz=1
43     irec=1
44 jmc 1.2 #ifdef ALLOW_MDSIO
45 adcroft 1.1 CALL MDSREADFIELD( fullName, readBinaryPrec, fType,
46     & nNz, field, irec, myThid )
47 jmc 1.2 #endif
48 adcroft 1.1 RETURN
49     END

  ViewVC Help
Powered by ViewVC 1.1.22