Commit 89c9c159 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

config/default: changed gribapi version on gata to 1.9.5

parent e570cd7d
......@@ -39,7 +39,7 @@ case "${HOSTNAME}" in
gata)
./configure --prefix=$HOME/local/etch-ia32 \
--with-jasper=/sw/etch-ia32/jasper-1.900.1 \
--with-grib_api=/scratch/local2/m214003/local \
--with-grib_api=$HOME/local/etch-ia32/grib_api-1.9.5 \
--with-netcdf=/sw/etch-ia32/netcdf-4.0.1 \
--with-hdf5=/sw/etch-ia32/hdf5-1.8.2 \
--with-zlib=/sw/etch-ia32/zlib-1.2.3 \
......
......@@ -805,9 +805,13 @@ void gribapiScanTimestep1(int streamID)
{
size_t len = 256;
char typeOfPacking[256];
GRIB_CHECK(grib_get_string(gh, "typeOfPacking", typeOfPacking, &len), 0);
// fprintf(stderr, "typeOfPacking %d %s\n", len, typeOfPacking);
if ( strncmp(typeOfPacking, "grid_jpeg", len) == 0 ) ztype = COMPRESS_JPEG;
status = grib_get_string(gh, "typeOfPacking", typeOfPacking, &len);
if ( status == 0 )
{
// fprintf(stderr, "typeOfPacking %d %s\n", len, typeOfPacking);
if ( strncmp(typeOfPacking, "grid_jpeg", len) == 0 ) ztype = COMPRESS_JPEG;
}
GRIB_CHECK(grib_get_long(gh, "discipline", &lpar), 0);
pdis = (int) lpar;
......
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