/[MITgcm]/MITgcm/pkg/regrid/regrid_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/regrid/regrid_readparms.F

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


Revision 1.1 - (show annotations) (download)
Tue Aug 15 04:05:48 2006 UTC (17 years, 10 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint64x, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
initial check-in

1 C $Header: /u/gcmpack/MITgcm_contrib/eh3/regrid/regrid/regrid_readparms.F,v 1.2 2006/08/10 21:50:00 edhill Exp $
2 C $Name: $
3
4 #include "REGRID_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: REGRID_READPARMS
9
10 C !INTERFACE:
11 SUBROUTINE REGRID_READPARMS( myThid )
12
13 C !DESCRIPTION:
14 C Initialize REGRID variables and constants.
15
16 C !USES:
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "GRID.h"
22 #include "REGRID_SIZE.h"
23 #include "REGRID.h"
24
25 C !INPUT PARAMETERS:
26 INTEGER myThid
27 CEOP
28
29 #ifdef ALLOW_REGRID
30
31 CHARACTER*(MAX_LEN_MBUF) msgBuf
32 CHARACTER*(MAX_LEN_FNAM) blank
33 INTEGER iUnit, i
34
35 NAMELIST /REGRID_PARM01/
36 & regrid_MNC, regrid_MDSIO,
37 & regrid_ngrids, regrid_fbname_in,
38 & regrid_nout
39
40 _BEGIN_MASTER(myThid)
41
42 DO i = 1,MAX_LEN_FNAM
43 blank(i:i) = ' '
44 ENDDO
45
46 C Default values for REGRID
47 REGRID_MNC = useMNC
48 REGRID_MDSIO = .FALSE.
49 regrid_ngrids = 0
50 DO i = 1,REGRID_NGRID_MAX
51 REGRID_fbname_in(i)(1:MAX_LEN_FNAM) = blank(1:MAX_LEN_FNAM)
52 REGRID_fbname_out(i)(1:MAX_LEN_FNAM) = blank(1:MAX_LEN_FNAM)
53 regrid_nout(i) = 0
54 ENDDO
55
56 WRITE(msgBuf,'(A)') 'REGRID_READPARMS: opening data.regrid'
57 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
58 & SQUEEZE_RIGHT , 1)
59 CALL OPEN_COPY_DATA_FILE(
60 I 'data.regrid', 'REGRID_READPARMS',
61 O iUnit,
62 I myThid )
63
64 C Read parameters from open data file
65 READ(UNIT=iUnit,NML=REGRID_PARM01)
66 WRITE(msgBuf,'(A)')
67 & 'REGRID_READPARMS: finished reading data.regrid'
68 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
69 & SQUEEZE_RIGHT , 1)
70 C Close the open data file
71 CLOSE(iUnit)
72
73 C Make sure that we locally honor the global MNC on/off flag
74 REGRID_MNC = REGRID_MNC .AND. useMNC
75 #ifndef ALLOW_MNC
76 C Fix to avoid running without getting any output:
77 REGRID_MNC = .FALSE.
78 #endif
79 REGRID_MDSIO = (.NOT. REGRID_MNC) .OR. outputTypesInclusive
80
81 _END_MASTER(myThid)
82
83 C-- Everyone else must wait for the parameters to be loaded
84 _BARRIER
85
86 #endif /* ALLOW_REGRID */
87
88 RETURN
89 END

  ViewVC Help
Powered by ViewVC 1.1.22