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
ba57b8d9
Commit
ba57b8d9
authored
Feb 15, 2010
by
Uwe Schulzweida
Browse files
cgribexDefTime: bug fix for timerange = -1
parent
50e7bc9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
ba57b8d9
...
...
@@ -1553,7 +1553,7 @@ int cgribexDefTimerange(int tsteptype, int factor, int calendar,
*
pip1
=
ip1
;
*
pip2
=
ip2
;
// printf("timerange %d %d %d\n", timerange, ip1, ip2);
return
(
timerange
);
}
...
...
@@ -1631,16 +1631,20 @@ void cgribexDefTime(int *isec1, int vdate, int vtime, int tsteptype, int numavg,
timerange
=
cgribexDefTimerange
(
tsteptype
,
factor
,
calendar
,
rdate
,
rtime
,
vdate
,
vtime
,
&
ip1
,
&
ip2
);
if
(
timerange
==
-
1
)
{
timetype
=
TAXIS_ABSOLUTE
;
}
if
(
timerange
==
10
)
{
if
(
ip1
<
0
||
ip1
>
0x
ffff
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip2
<
0
||
ip2
>
0x
ffff
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip1
<
0
||
ip1
>
0x
FFFF
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip2
<
0
||
ip2
>
0x
FFFF
)
timetype
=
TAXIS_ABSOLUTE
;
}
else
{
if
(
ip1
<
0
||
ip1
>
0x
ff
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip2
<
0
||
ip2
>
0x
ff
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip1
<
0
||
ip1
>
0x
FF
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
ip2
<
0
||
ip2
>
0x
FF
)
timetype
=
TAXIS_ABSOLUTE
;
}
ISEC1_TimeRange
=
timerange
;
...
...
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