Skip to content
GitLab
Menu
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
53377768
Commit
53377768
authored
Dec 07, 2015
by
Thomas Jahns
🤸
Browse files
Declare loop index variable in for.
parent
385bc281
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
53377768
...
...
@@ -4718,13 +4718,12 @@ cdfLazyGridRenew(struct cdfLazyGrid *restrict *restrict gridpptr, int gridtype)
static
void
define_all_grids
(
stream_t
*
streamptr
,
int
vlistID
,
ncdim_t
*
ncdims
,
int
nvars
,
ncvar_t
*
ncvars
,
int
timedimid
,
unsigned
char
*
uuidOfHGrid
,
char
*
gridfile
,
int
number_of_grid_used
)
{
int
ncvarid
,
ncvarid2
;
int
ltwarn
=
TRUE
;
struct
cdfLazyGrid
*
restrict
lazyGrid
=
NULL
,
*
restrict
lazyProj
=
NULL
;
#define grid (&lazyGrid->base)
#define proj (&lazyProj->base)
for
(
ncvarid
=
0
;
ncvarid
<
nvars
;
++
ncvarid
)
for
(
int
ncvarid
=
0
;
ncvarid
<
nvars
;
++
ncvarid
)
{
if
(
ncvars
[
ncvarid
].
isvar
&&
ncvars
[
ncvarid
].
gridID
==
UNDEFID
)
{
...
...
@@ -5367,7 +5366,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if
(
CDI_Debug
)
Message
(
"gridID %d %d %s"
,
ncvars
[
ncvarid
].
gridID
,
ncvarid
,
ncvars
[
ncvarid
].
name
);
for
(
ncvarid2
=
ncvarid
+
1
;
ncvarid2
<
nvars
;
ncvarid2
++
)
for
(
int
ncvarid2
=
ncvarid
+
1
;
ncvarid2
<
nvars
;
ncvarid2
++
)
if
(
ncvars
[
ncvarid2
].
isvar
==
TRUE
&&
ncvars
[
ncvarid2
].
gridID
==
UNDEFID
)
{
int
xdimid2
=
UNDEFID
,
ydimid2
=
UNDEFID
,
zdimid2
=
UNDEFID
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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