Commit 59c4fefe authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gribapiEncode: init grib2LocalSectionPresent to 0.

parent c937c483
......@@ -1505,7 +1505,7 @@ int gribapiScanTimestep(stream_t * streamptr)
if ( CDI_Debug )
Message("%4d %8d %4d %8d %8lld %6d", rindex, (int)recpos, param, level1, vdate, vtime);
grib_handle_delete(gh);
grib_handle_delete(gh);
gh = NULL;
rindex++;
......@@ -3160,6 +3160,7 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
int shapeOfTheEarth = 0;
cdiInqKeyInt(vlistID, varID, CDI_KEY_SHAPEOFTHEEARTH, &shapeOfTheEarth);
GRIB_CHECK(my_grib_set_long(gh, "shapeOfTheEarth", (long)shapeOfTheEarth), 0);
GRIB_CHECK(my_grib_set_long(gh, "grib2LocalSectionPresent", 0), 0);
int grib2LocalSectionNumber, section2PaddingLength;
int mpimType, mpimClass, mpimUser;
......
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