Commit c82274fc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_gribapi: set numberOfValues for complex packing

parent a0bdc12f
......@@ -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"
;;
......
......@@ -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) )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment