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
c82274fc
Commit
c82274fc
authored
Mar 07, 2011
by
Uwe Schulzweida
Browse files
stream_gribapi: set numberOfValues for complex packing
parent
a0bdc12f
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/default
View file @
c82274fc
...
...
@@ -15,8 +15,9 @@ case "${HOSTNAME}" in
hama
*
)
./configure
--prefix
=
$HOME
/local
\
--enable-maintainer-mode
\
--with-jasper
=
/opt/local
\
--with-grib_api
=
$HOME
/local/gribapi-1.9.8
\
--with-netcdf
=
/opt/local
\
--with-hdf5
=
/opt/local
\
--with-szlib
=
$HOME
/local
\
CC
=
gcc
CFLAGS
=
"-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2 -Df2cFortran"
;;
...
...
src/stream_gribapi.c
View file @
c82274fc
...
...
@@ -2233,7 +2233,7 @@ void gribapiDefGrid(grib_handle *gh, int gridID, int ljpeg)
GRIB_CHECK
(
grib_set_long
(
gh
,
"M"
,
trunc
),
0
);
// GRIB_CHECK(grib_set_long(gh, "numberOfDataPoints", gridInqSize(gridID)), 0);
//
GRIB_CHECK(grib_set_long(gh, "numberOfValues", gridInqSize(gridID)), 0);
GRIB_CHECK
(
grib_set_long
(
gh
,
"numberOfValues"
,
gridInqSize
(
gridID
)),
0
);
if
(
gridInqComplexPacking
(
gridID
)
)
{
...
...
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