Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
b436e16f
Commit
b436e16f
authored
Jan 29, 2014
by
Uwe Schulzweida
Browse files
stream_cgribex: check wether taxisID is valid
parent
e5916f72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
b436e16f
...
...
@@ -1566,13 +1566,15 @@ int cgribexDefDateTime(int *isec1, int timeunit, int date, int time)
static
void
cgribexDefTime
(
int
*
isec1
,
int
vdate
,
int
vtime
,
int
tsteptype
,
int
numavg
,
int
taxisID
)
{
int
timetype
=
-
1
;
int
timetype
=
TAXIS_ABSOLUTE
;
int
timerange
=
0
;
int
timeunit
;
if
(
taxisID
!=
-
1
)
timetype
=
taxisInqType
(
taxisID
);
int
timeunit
=
TUNIT_HOUR
;
timeunit
=
taxisInqTunit
(
taxisID
);
if
(
taxisID
!=
-
1
)
{
timetype
=
taxisInqType
(
taxisID
);
timeunit
=
taxisInqTunit
(
taxisID
);
}
if
(
timetype
==
TAXIS_RELATIVE
)
{
...
...
Write
Preview
Markdown
is supported
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