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
1e82bbf9
Commit
1e82bbf9
authored
Jan 09, 2013
by
Uwe Schulzweida
Browse files
stream_new_var: changed argument type to stream_t
parent
a331774b
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
1e82bbf9
...
...
@@ -2209,10 +2209,9 @@ void streamDefVlist(int streamID, int vlistID)
{
gridID
=
vlistInqVarGrid
(
vlistID
,
varID
);
zaxisID
=
vlistInqVarZaxis
(
vlistID
,
varID
);
stream
NewV
ar
(
stream
ID
,
gridID
,
zaxisID
);
stream
_new_v
ar
(
stream
ptr
,
gridID
,
zaxisID
);
if
(
streamptr
->
have_missval
)
vlistDefVarMissval
(
streamptr
->
vlistID
,
varID
,
vlistInqVarMissval
(
vlistID
,
varID
));
vlistDefVarMissval
(
streamptr
->
vlistID
,
varID
,
vlistInqVarMissval
(
vlistID
,
varID
));
}
if
(
namespaceHasLocalFile
(
namespaceGetActive
())
...
...
src/stream_cdf.c
View file @
1e82bbf9
...
...
@@ -6048,7 +6048,7 @@ void define_all_vars(int streamID, int vlistID, int instID, int modelID, int *va
gridID
=
ncvars
[
ncvarid
].
gridID
;
zaxisID
=
ncvars
[
ncvarid
].
zaxisID
;
varID
=
stream
NewV
ar
(
stream
ID
,
gridID
,
zaxisID
);
varID
=
stream
_new_v
ar
(
stream
ptr
,
gridID
,
zaxisID
);
varID
=
vlistDefVar
(
vlistID
,
gridID
,
zaxisID
,
ncvars
[
ncvarid
].
tsteptype
);
#if defined (HAVE_NETCDF4)
...
...
src/stream_int.h
View file @
1e82bbf9
...
...
@@ -285,7 +285,7 @@ void streamDefineTaxis(int streamID);
int
streamsNewEntry
(
int
filetype
);
void
streamsInitEntry
(
int
streamID
);
int
stream
NewVar
(
in
t
stream
ID
,
int
gridID
,
int
zaxisID
);
int
stream
_new_var
(
stream_
t
*
stream
ptr
,
int
gridID
,
int
zaxisID
);
int
tstepsNewEntry
(
stream_t
*
streamptr
);
...
...
src/stream_var.c
View file @
1e82bbf9
...
...
@@ -12,12 +12,8 @@
static
void
streamvar
I
nit
E
ntry
(
in
t
stream
ID
,
int
varID
)
void
streamvar
_i
nit
_e
ntry
(
stream_
t
*
stream
ptr
,
int
varID
)
{
stream_t
*
streamptr
;
streamptr
=
stream_to_pointer
(
streamID
);
streamptr
->
vars
[
varID
].
ncvarid
=
CDI_UNDEFID
;
streamptr
->
vars
[
varID
].
defmiss
=
0
;
streamptr
->
vars
[
varID
].
nlevs
=
0
;
...
...
@@ -32,14 +28,11 @@ void streamvarInitEntry(int streamID, int varID)
}
static
int
streamvar
NewEntry
(
in
t
stream
ID
)
int
streamvar
_new_entry
(
stream_
t
*
stream
ptr
)
{
int
varID
=
0
;
int
streamvarSize
;
svarinfo_t
*
streamvar
;
stream_t
*
streamptr
;
streamptr
=
stream_to_pointer
(
streamID
);
streamvarSize
=
streamptr
->
varsAllocated
;
streamvar
=
streamptr
->
vars
;
...
...
@@ -93,7 +86,7 @@ int streamvarNewEntry(int streamID)
streamptr
->
varsAllocated
=
streamvarSize
;
streamptr
->
vars
=
streamvar
;
streamvar
I
nit
E
ntry
(
stream
ID
,
varID
);
streamvar
_i
nit
_e
ntry
(
stream
ptr
,
varID
);
streamptr
->
vars
[
varID
].
isUsed
=
TRUE
;
...
...
@@ -101,21 +94,18 @@ int streamvarNewEntry(int streamID)
}
int
stream
NewVar
(
in
t
stream
ID
,
int
gridID
,
int
zaxisID
)
int
stream
_new_var
(
stream_
t
*
stream
ptr
,
int
gridID
,
int
zaxisID
)
{
int
varID
;
int
*
level
;
int
*
lindex
;
int
nlevs
;
int
levID
;
stream_t
*
streamptr
;
streamptr
=
stream_to_pointer
(
streamID
);
if
(
CDI_Debug
)
Message
(
"gridID = %d zaxisID = %d"
,
gridID
,
zaxisID
);
varID
=
streamvar
NewE
ntry
(
stream
ID
);
varID
=
streamvar
_new_e
ntry
(
stream
ptr
);
streamptr
->
nvars
++
;
...
...
src/varscan.c
View file @
1e82bbf9
...
...
@@ -535,7 +535,7 @@ void cdiGenVars(int streamID)
if
(
lbounds
)
free
(
dlevels2
);
free
(
dlevels
);
varID
=
stream
NewV
ar
(
stream
ID
,
gridID
,
zaxisID
);
varID
=
stream
_new_v
ar
(
stream
ptr
,
gridID
,
zaxisID
);
varID
=
vlistDefVar
(
vlistID
,
gridID
,
zaxisID
,
tsteptype
);
vlistDefVarParam
(
vlistID
,
varID
,
param
);
...
...
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