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
37bc2e82
Commit
37bc2e82
authored
Nov 19, 2018
by
Uwe Schulzweida
Browse files
grib1/ecCodes: set maxStep to 65000 (bug fix).
parent
584cabb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
37bc2e82
...
...
@@ -4,6 +4,10 @@
* using EXSE library version 1.4.1
* Version 1.9.6 released
2018-11-19 Uwe Schulzweida
* grib1/ecCodes: set maxStep to 65000 (bug fix)
2018-11-16 Uwe Schulzweida
* grib2: Added support for variables with different perturbationNumber
...
...
src/stream_gribapi.c
View file @
37bc2e82
...
...
@@ -1902,12 +1902,12 @@ int gribapiDefDateTimeRel(int editionNumber, grib_handle *gh, int64_t rdate, int
if
(
!
(
int
)(
fmod
(
days
*
86400
.
0
+
secs
,
factor
)))
{
int
proDefTempNum
=
gribapiDefSteptype
(
editionNumber
,
gh
,
productDefinitionTemplate
,
typeOfGeneratingProcess
,
tsteptype
,
gcinit
);
gribapiDefStepUnits
(
editionNumber
,
gh
,
timeunit
,
proDefTempNum
,
gcinit
);
long
startStep
=
0
;
double
endStepF
=
(
days
*
86400
.
0
+
secs
)
/
factor
;
if
(
endStepF
>
INT_MAX
)
return
status
;
long
maxStep
=
(
editionNumber
>
1
)
?
INT_MAX
:
65000
;
if
(
endStepF
>
maxStep
)
return
status
;
long
endStep
=
(
long
)
endStepF
;
if
(
editionNumber
>
1
)
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"significanceOfReferenceTime"
,
1
),
0
);
...
...
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