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
31cacc5f
Commit
31cacc5f
authored
Jan 06, 2017
by
Thomas Jahns
🤸
Browse files
Move variable declaration and definition closer to first use.
parent
3c3caaa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_o.c
View file @
31cacc5f
...
...
@@ -833,7 +833,6 @@ void cdfDefCurvilinear(stream_t *streamptr, int gridID, int gridindex)
int
xdimID
=
CDI_UNDEFID
;
int
ydimID
=
CDI_UNDEFID
;
int
ncxvarid
=
CDI_UNDEFID
,
ncyvarid
=
CDI_UNDEFID
;
int
ncbxvarid
=
CDI_UNDEFID
,
ncbyvarid
=
CDI_UNDEFID
,
ncavarid
=
CDI_UNDEFID
;
nc_type
xtype
=
(
nc_type
)
cdfDefDatatype
(
gridInqPrec
(
gridID
),
streamptr
->
filetype
);
ncgrid_t
*
ncgrid
=
streamptr
->
ncgrid
;
...
...
@@ -868,6 +867,7 @@ void cdfDefCurvilinear(stream_t *streamptr, int gridID, int gridindex)
}
}
int
ncbxvarid
=
CDI_UNDEFID
,
ncbyvarid
=
CDI_UNDEFID
,
ncavarid
=
CDI_UNDEFID
;
if
(
xdimID
==
CDI_UNDEFID
||
ydimID
==
CDI_UNDEFID
)
{
if
(
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
...
...
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