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
6a80f33b
Commit
6a80f33b
authored
Mar 14, 2017
by
Uwe Schulzweida
Browse files
Replace vlistInqVarTimave(vlistID, varID) by (tsteptype == TSTEP_AVG).
parent
5933e614
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grb_write.c
View file @
6a80f33b
...
...
@@ -174,9 +174,7 @@ void grb_write_var_slice(stream_t *streamptr, int varID, int levelID, int memtyp
int
tsID
=
streamptr
->
curTsID
;
int
date
=
streamptr
->
tsteps
[
tsID
].
taxis
.
vdate
;
int
time
=
streamptr
->
tsteps
[
tsID
].
taxis
.
vtime
;
int
numavg
=
0
;
if
(
vlistInqVarTimave
(
vlistID
,
varID
)
)
numavg
=
streamptr
->
tsteps
[
tsID
].
taxis
.
numavg
;
int
numavg
=
(
tsteptype
==
TSTEP_AVG
)
?
streamptr
->
tsteps
[
tsID
].
taxis
.
numavg
:
0
;
if
(
CDI_Debug
)
Message
(
"gridID = %d zaxisID = %d"
,
gridID
,
zaxisID
);
...
...
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