Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
95f1f239
Commit
95f1f239
authored
Apr 14, 2014
by
Thomas Jahns
🤸
Browse files
Replace repeated literal with symbolic constant.
parent
65151f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/model.c
View file @
95f1f239
...
...
@@ -79,7 +79,8 @@ int modelDef(int instID, int modelgribID, const char *name);
void
modelDefaultEntries
(
void
)
{
int
instID
,
i
;
cdiResH
resH
[
10
];
enum
{
nDefModels
=
10
};
cdiResH
resH
[
nDefModels
];
instID
=
institutInq
(
0
,
0
,
"ECMWF"
,
NULL
);
/* (void) modelDef(instID, 131, "ERA15"); */
...
...
@@ -106,7 +107,7 @@ void modelDefaultEntries ( void )
instID
=
institutInq
(
0
,
1
,
"NCEP"
,
NULL
);
resH
[
9
]
=
modelDef
(
instID
,
80
,
"T62L28MRF"
);
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
i
=
0
;
i
<
nDefModels
;
i
++
)
reshSetStatus
(
resH
[
i
],
&
modelOps
,
RESH_PRE_ASSIGNED
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment