/[MITgcm]/MITgcm/model/src/askparam.F
ViewVC logotype

Contents of /MITgcm/model/src/askparam.F

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


Revision 1.1 - (show annotations) (download)
Tue Oct 26 19:11:57 2004 UTC (19 years, 6 months ago) by molod
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint58l_post, checkpoint57o_post, checkpoint57m_post, checkpoint58e_post, checkpoint57v_post, checkpoint57f_post, checkpoint57s_post, checkpoint57j_post, checkpoint58b_post, checkpoint58m_post, checkpoint57b_post, checkpoint57f_pre, checkpoint57k_post, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint61l, checkpoint58h_post, checkpoint57e_post, checkpoint58w_post, checkpoint56c_post, checkpoint58j_post, checkpoint57h_post, checkpoint57y_pre, checkpoint57a_post, checkpoint58q_post, mitgcm_mapl_00, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, checkpoint57h_done, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58o_post, checkpoint57z_post, checkpoint62a, eckpoint57e_pre, checkpoint58c_post, checkpoint57h_pre, checkpoint58k_post, checkpoint57c_post, checkpoint58u_post, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint58t_post, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint57l_post, checkpoint56a_post
Function to query values from inside of common blocks in PARAMS.h

1 C $Header: $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: ASKPARAMRL
9
10 C !INTERFACE:
11 FUNCTION ASKPARAMRL(NAME)
12
13 C !DESCRIPTION:
14 C Real function askparam queries common blocks in PARAMS.h
15 C Function is called with a character name to interrogate a
16 C real value.
17
18 C !USES:
19 implicit none
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23
24 C !INPUT PARAMETERS:
25 CHARACTER*(*) NAME
26 CEOP
27
28 integer I
29 INTEGER MAXCON
30 C So far we can query no values - the routine can be taught
31 PARAMETER (MAXCON=1)
32 CHARACTER*16 ANAME(MAXCON)
33 data ANAME(1)/' '/
34 _RL ASKPARAMRL
35
36 DO I=1,MAXCON
37 IF(NAME.EQ.ANAME(1)) THEN
38 ASKPARAMRL = 0.
39 RETURN
40 ENDIF
41 ENDDO
42
43 900 PRINT *,' ASKPARAMRL CANNOT FIND - ',NAME
44 RETURN
45 END
46 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
47 CBOP 0
48 C !ROUTINE: ASKPARAML
49
50 C !INTERFACE:
51 FUNCTION ASKPARAML(NAME)
52
53 C !DESCRIPTION:
54 C Logical function askparam queries common blocks in PARAMS.h
55 C Function is called with a character name to interrogate a
56 C logical value.
57
58 C !USES:
59 implicit none
60 #include "SIZE.h"
61 #include "EEPARAMS.h"
62 #include "PARAMS.h"
63
64 C !INPUT PARAMETERS:
65 CHARACTER*(*) NAME
66 CEOP
67
68 integer I
69 INTEGER MAXCON
70 C So far we can query 1 value only - the routine can be taught more
71 PARAMETER (MAXCON=1)
72 CHARACTER*16 ANAME(MAXCON)
73 data ANAME(1)/'useMNC '/
74 logical ASKPARAML
75
76 DO I=1,MAXCON
77 IF(NAME.EQ.ANAME(1)) THEN
78 ASKPARAML = useMNC
79 RETURN
80 ENDIF
81 ENDDO
82
83 900 PRINT *,' ASKPARAML CANNOT FIND - ',NAME
84 RETURN
85 END
86 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
87 CBOP 0
88 C !ROUTINE: ASKPARAMI
89
90 C !INTERFACE:
91 FUNCTION ASKPARAMI(NAME)
92
93 C !DESCRIPTION:
94 C Integer function askparam queries common blocks in PARAMS.h
95 C Function is called with a character name to interrogate an
96 C integer value.
97
98 C !USES:
99 implicit none
100 #include "SIZE.h"
101 #include "EEPARAMS.h"
102 #include "PARAMS.h"
103
104 C !INPUT PARAMETERS:
105 CHARACTER*(*) NAME
106 CEOP
107
108 integer I
109 INTEGER MAXCON
110 C So far we can query 1 value only - the routine can be taught more
111 PARAMETER (MAXCON=1)
112 CHARACTER*16 ANAME(MAXCON)
113 data ANAME(1)/'NITER0 '/
114 integer ASKPARAMI
115
116 DO I=1,MAXCON
117 IF(NAME.EQ.ANAME(1)) THEN
118 ASKPARAMI = nIter0
119 RETURN
120 ENDIF
121 ENDDO
122
123 900 PRINT *,' ASKPARAMI CANNOT FIND - ',NAME
124 RETURN
125 END

  ViewVC Help
Powered by ViewVC 1.1.22