Commit 88b84d3a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_gribapi: changed varDefOptGribInt() to varDefOptGribDbl() (bug fix)

parent 8fcb99a6
2014-01-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::define_all_grids: bug fix for unstructured grids with and an additional undefined dimension [report: Florian Prill]
* stream_cdf::define_all_grids: bug fix for unstructured grids and an additional undefined dimension [report: Florian Prill]
2014-01-08 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
......
......@@ -957,7 +957,7 @@ void gribapiAddRecord(stream_t * streamptr, int param, grib_handle *gh,
if ( linitial_field )
{
if ( grib_get_double(gh, cdiAdditionalGRIBKeys[i], &dval) == 0 )
varDefOptGribInt(varID, dval, cdiAdditionalGRIBKeys[i]);
varDefOptGribDbl(varID, dval, cdiAdditionalGRIBKeys[i]);
}
/* note: if the key is not defined, we do not throw an error! */
}
......
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