Commit 4896e3e1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexlib update

parent 85b41ffb
/* Automatically generated by m214003 at 2011-08-27, do not edit */
/* Automatically generated by m214003 at 2011-08-29, do not edit */
/* CGRIBEXLIB_VERSION="1.5.1" */
......@@ -3812,7 +3812,7 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
bmsIncluded = ISEC1_Sec2Or3Flag & 64;
/* set max header len */
len = 3000;
len = 16384;
/* add data len */
numBytes = (ISEC4_NumBits+7)>>3;
......@@ -3822,7 +3822,6 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
/* add bitmap len */
if ( bmsIncluded ) len += (klenp+7)>>3;
#if defined (VECTORCODE)
lGrib = (GRIBPACK *) malloc(len*sizeof(GRIBPACK));
if ( lGrib == NULL ) SysError("No Memory!");
......@@ -3878,17 +3877,15 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
bdsend = gribLen;
encodeES(lGrib, &gribLen, bdsstart);
if ( (size_t) gribLen > len )
Error("lGrib buffer too small! len = %d gribLen = %d", len, gribLen);
if ( (size_t) gribLen > kleng*sizeof(int) )
Error("kgrib buffer too small! kleng = %d gribLen = %d", kleng, gribLen);
#if defined (VECTORCODE)
if ( (size_t) gribLen > len )
Error("lGrib buffer too small! len = %d gribLen = %d", len, gribLen);
(void) PACK_GRIB(lGrib, (unsigned char *)CGrib, gribLen, -1L);
#endif
#if defined (VECTORCODE)
free(lGrib);
#endif
......@@ -9170,7 +9167,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return (gribLen);
}
static const char grb_libvers[] = "1.5.1" " of ""Aug 27 2011"" ""08:40:40";
static const char grb_libvers[] = "1.5.1" " of ""Aug 29 2011"" ""20:30:27";
const char *
cgribexLibraryVersion(void)
{
......
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