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
557a1b26
Commit
557a1b26
authored
Jan 09, 2013
by
Uwe Schulzweida
Browse files
cdi_generate_vars: changed argument type to stream_t
parent
1e82bbf9
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
557a1b26
...
...
@@ -710,7 +710,7 @@ int cgribexScanTimestep1(int streamID)
if
(
nrecs
==
0
)
return
(
CDI_EUFSTRUCT
);
cdi
GenV
ars
(
stream
ID
);
cdi
_generate_v
ars
(
stream
ptr
);
if
(
fcast
)
{
...
...
src/stream_ext.c
View file @
557a1b26
...
...
@@ -442,7 +442,7 @@ void extScanTimestep1(int streamID)
streamptr
->
rtsteps
=
1
;
cdi
GenV
ars
(
stream
ID
);
cdi
_generate_v
ars
(
stream
ptr
);
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
...
...
src/stream_gribapi.c
View file @
557a1b26
...
...
@@ -888,7 +888,7 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
/*
Get the ensemble Info from the grib-2 Tables and update the intermediate datastructure.
Further update to the "vlist" is handled in the same way as for GRIB-1 by "cdi
GenV
ars"
Further update to the "vlist" is handled in the same way as for GRIB-1 by "cdi
_generate_v
ars"
*/
{
int
status
;
...
...
@@ -1203,7 +1203,7 @@ int gribapiScanTimestep1(int streamID)
if
(
nrecs
==
0
)
return
(
CDI_EUFSTRUCT
);
cdi
GenV
ars
(
stream
ID
);
cdi
_generate_v
ars
(
stream
ptr
);
if
(
fcast
)
{
...
...
src/stream_ieg.c
View file @
557a1b26
...
...
@@ -960,7 +960,7 @@ void iegScanTimestep1(int streamID)
streamptr
->
rtsteps
=
1
;
cdi
GenV
ars
(
stream
ID
);
cdi
_generate_v
ars
(
stream
ptr
);
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
...
...
src/stream_int.h
View file @
557a1b26
...
...
@@ -291,7 +291,7 @@ int tstepsNewEntry(stream_t *streamptr);
char
*
strfiletype
(
int
filetype
);
void
cdi
GenVars
(
in
t
stream
ID
);
void
cdi
_generate_vars
(
stream_
t
*
stream
ptr
);
void
cdiCheckContents
(
int
streamID
);
...
...
src/stream_srv.c
View file @
557a1b26
...
...
@@ -443,7 +443,7 @@ void srvScanTimestep1(int streamID)
streamptr
->
rtsteps
=
1
;
cdi
GenV
ars
(
stream
ID
);
cdi
_generate_v
ars
(
stream
ptr
);
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
...
...
src/varscan.c
View file @
557a1b26
...
...
@@ -392,7 +392,7 @@ int cmpltype(const void *s1, const void *s2)
}
void
cdi
GenVars
(
in
t
stream
ID
)
void
cdi
_generate_vars
(
stream_
t
*
stream
ptr
)
{
int
varID
,
gridID
,
zaxisID
,
levelID
;
int
instID
,
modelID
,
tableID
;
...
...
@@ -408,11 +408,8 @@ void cdiGenVars(int streamID)
double
*
dlevels2
=
NULL
;
int
vlistID
;
int
*
varids
,
index
,
varid
;
stream_t
*
streamptr
;
streamptr
=
stream_to_pointer
(
streamID
);
vlistID
=
streamInqVlist
(
streamID
);
vlistID
=
streamptr
->
vlistID
;
varids
=
(
int
*
)
malloc
(
nvars
*
sizeof
(
int
));
for
(
varID
=
0
;
varID
<
nvars
;
varID
++
)
varids
[
varID
]
=
varID
;
...
...
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