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
a09ed322
Commit
a09ed322
authored
May 09, 2012
by
Uwe Schulzweida
Browse files
stream_cdf::define_all_vars: make tableID local
parent
1920be15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
a09ed322
...
...
@@ -5881,10 +5881,11 @@ void define_all_zaxes(stream_t *streamptr, int fileID, int vlistID, ncdim_t *ncd
#if defined (HAVE_LIBNETCDF)
/* define all input data variables */
static
void
define_all_vars
(
int
fileID
,
int
streamID
,
int
vlistID
,
int
instID
,
int
modelID
,
int
tableID
,
int
*
varids
,
ncdim_t
*
ncdims
,
int
nvars
,
ncvar_t
*
ncvars
)
void
define_all_vars
(
int
fileID
,
int
streamID
,
int
vlistID
,
int
instID
,
int
modelID
,
int
*
varids
,
ncdim_t
*
ncdims
,
int
nvars
,
ncvar_t
*
ncvars
)
{
int
varID1
,
varID
,
ncvarid
;
int
code
;
int
tableID
;
stream_t
*
streamptr
;
streamptr
=
stream_to_pointer
(
streamID
);
...
...
@@ -6182,7 +6183,6 @@ int cdfInqContents(int streamID)
int
nc_nvars
;
int
nvcth_id
=
UNDEFID
,
vcta_id
=
UNDEFID
,
vctb_id
=
UNDEFID
;
size_t
vctsize
=
0
;
int
tableID
;
double
*
vct
=
NULL
;
int
instID
=
UNDEFID
;
int
modelID
=
UNDEFID
;
...
...
@@ -6630,7 +6630,7 @@ int cdfInqContents(int streamID)
/* define all data variables */
define_all_vars
(
fileID
,
streamID
,
vlistID
,
instID
,
modelID
,
tableID
,
varids
,
ncdims
,
nvars
,
ncvars
);
define_all_vars
(
fileID
,
streamID
,
vlistID
,
instID
,
modelID
,
varids
,
ncdims
,
nvars
,
ncvars
);
cdiCreateTimesteps
(
streamID
);
...
...
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