/[MITgcm]/MITgcm/pkg/grdchk/grdchk_readparms.F
ViewVC logotype

Contents of /MITgcm/pkg/grdchk/grdchk_readparms.F

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


Revision 1.9 - (show annotations) (download)
Mon May 23 19:28:46 2005 UTC (19 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57s_post, checkpoint58b_post, checkpoint57y_post, checkpoint57r_post, checkpoint57i_post, checkpoint58, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint58r_post, checkpoint58n_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, checkpoint58k_post, checkpoint58l_post, checkpoint57j_post, checkpoint58g_post, checkpoint58h_post, checkpoint58j_post, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post
Changes since 1.8: +20 -23 lines
Replace call to nml_filter by open_copy_data_file
(dont know why it hasnt always been that way in the first place).

1 C $Header: /u/gcmpack/MITgcm/pkg/grdchk/grdchk_readparms.F,v 1.8 2004/03/23 19:42:53 heimbach Exp $
2
3 #include "CPP_OPTIONS.h"
4
5
6 subroutine grdchk_readparms( mythid )
7
8 c ==================================================================
9 c SUBROUTINE grdchk_readparms
10 c ==================================================================
11 c
12 c o Initialize the ECCO gradient check.
13 c
14 c started: Christian Eckert eckert@mit.edu 03-Mar-2000
15 c continued: heimbach@mit.edu: 13-Jun-2001
16 c
17 c ==================================================================
18 c SUBROUTINE grdchk_readparms
19 c ==================================================================
20
21 implicit none
22
23 c == global variables ==
24
25 #include "EEPARAMS.h"
26 #include "SIZE.h"
27
28 #include "ctrl.h"
29 #include "grdchk.h"
30
31 c == routine arguments ==
32
33 integer mythid
34
35 #ifdef ALLOW_GRDCHK
36 c == local variables ==
37
38 integer i,j,k
39 integer bi,bj
40 integer itlo,ithi
41 integer jtlo,jthi
42 integer jmin,jmax
43 integer imin,imax
44
45 integer errio
46 integer il
47 integer iUnit
48
49 character*(max_len_mbuf) msgbuf
50 character*(max_len_prec) record
51
52 c == external ==
53
54 integer ilnblnk
55 external ilnblnk
56
57 c == end of interface ==
58
59 c-- Optimization parameters.
60 namelist /grdchk_nml/
61 & grdchk_eps,
62 & nbeg,
63 & nstep,
64 & nend,
65 & grdchkvarindex,
66 & useCentralDiff,
67 & grdchkwhichproc,
68 & iGloPos,
69 & jGloPos,
70 & kGloPos,
71 & obcsglo,
72 & recglo
73
74 jtlo = mybylo(mythid)
75 jthi = mybyhi(mythid)
76 itlo = mybxlo(mythid)
77 ithi = mybxhi(mythid)
78 jmin = 1-oly
79 jmax = sny+oly
80 imin = 1-olx
81 imax = snx+olx
82
83 _BEGIN_MASTER( mythid )
84
85 c-- Set default values.
86 grdchk_eps = 1. _d 0
87 nbeg = 0
88 nend = 0
89 nstep = 0
90 useCentralDiff = .TRUE.
91 grdchkwhichproc = 0
92 iGloPos = 0
93 jGloPos = 0
94 kGloPos = 1
95 obcsglo = 1
96 recglo = 1
97
98
99 c Next, read the calendar data file.
100 WRITE(msgBuf,'(A)') 'GRDCHK_READPARMS: opening data.grdchk'
101 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
102 & SQUEEZE_RIGHT , 1)
103
104 CALL OPEN_COPY_DATA_FILE(
105 I 'data.grdchk', 'GRDCHK_READPARMS',
106 O iUnit,
107 I myThid )
108
109 READ(unit = iUnit, nml = grdchk_nml)
110
111 WRITE(msgBuf,'(A)')
112 & 'GRDCHK_READPARMS: finished reading data.grdchk'
113 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
114 & SQUEEZE_RIGHT , 1)
115
116 CLOSE( iUnit )
117
118 c-- Summarize the gradient check's setup.
119 call grdchk_Summary( mythid )
120 _END_MASTER( mythid )
121
122 _BARRIER
123
124 #endif /* ALLOW_GRDCHK */
125
126 end
127
128

  ViewVC Help
Powered by ViewVC 1.1.22