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
a054ced2
Commit
a054ced2
authored
Jul 26, 2016
by
Uwe Schulzweida
Browse files
Init ncgrid[index].gridID.
parent
1420aab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_o.c
View file @
a054ced2
...
...
@@ -2056,6 +2056,7 @@ void cdfDefGrid(stream_t *streamptr, int gridID, int gridindex)
if
(
size
==
1
&&
gridInqXsize
(
gridID
)
==
0
&&
gridInqYsize
(
gridID
)
==
0
)
{
/* no grid information */
streamptr
->
ncgrid
[
gridindex
].
gridID
=
gridID
;
}
else
{
...
...
@@ -2154,6 +2155,7 @@ void cdfDefVars(stream_t *streamptr)
streamptr
->
ncgrid
=
(
ncgrid_t
*
)
Malloc
(
2
*
ngrids
*
sizeof
(
ncgrid_t
));
for
(
index
=
0
;
index
<
2
*
ngrids
;
++
index
)
{
streamptr
->
ncgrid
[
index
].
gridID
=
UNDEFID
;
streamptr
->
ncgrid
[
index
].
xdimID
=
UNDEFID
;
streamptr
->
ncgrid
[
index
].
ydimID
=
UNDEFID
;
streamptr
->
ncgrid
[
index
].
xvarID
=
UNDEFID
;
...
...
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