Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
1c6a5655
Commit
1c6a5655
authored
Nov 26, 2014
by
Thomas Jahns
🤸
Browse files
Merge declarations and initialization in cdfDef{Complex|Timestep}.
parent
4228a779
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
1c6a5655
...
...
@@ -1054,9 +1054,7 @@ void cdfDefTime(stream_t* streamptr)
void
cdfDefTimestep
(
stream_t
*
streamptr
,
int
tsID
)
{
int
vlistID
;
vlistID
=
streamptr
->
vlistID
;
int
vlistID
=
streamptr
->
vlistID
;
if
(
vlistHasTime
(
vlistID
)
)
cdfDefTime
(
streamptr
);
...
...
@@ -1067,19 +1065,14 @@ static
void
cdfDefComplex
(
stream_t
*
streamptr
,
int
gridID
)
{
char
axisname
[]
=
"nc2"
;
int
index
;
int
dimID
=
UNDEFID
;
int
gridID0
,
gridtype0
,
gridindex
;
int
ngrids
;
int
fileID
;
int
vlistID
;
int
gridID0
,
gridtype0
;
int
vlistID
=
streamptr
->
vlistID
;
int
fileID
=
streamptr
->
fileID
;
vlistID
=
streamptr
->
vlistID
;
fileID
=
streamptr
->
fileID
;
int
ngrids
=
vlistNgrids
(
vlistID
);
ngrids
=
vlistNgrids
(
vlistID
);
for
(
index
=
0
;
index
<
ngrids
;
index
++
)
for
(
int
index
=
0
;
index
<
ngrids
;
index
++
)
{
if
(
streamptr
->
xdimID
[
index
]
!=
UNDEFID
)
{
...
...
@@ -1105,7 +1098,7 @@ void cdfDefComplex(stream_t *streamptr, int gridID)
streamptr
->
ncmode
=
2
;
}
gridindex
=
vlistGridIndex
(
vlistID
,
gridID
);
int
gridindex
=
vlistGridIndex
(
vlistID
,
gridID
);
streamptr
->
xdimID
[
gridindex
]
=
dimID
;
}
...
...
Write
Preview
Markdown
is supported
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