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

cdi_generate_vars: uinitialize level_sf with 1 (bug fix)

parent c3e039f9
......@@ -314,17 +314,16 @@ void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
}
else
{
char paramstr[32];
cdiParamToString(param, paramstr, sizeof(paramstr));
if ( vartable[varID].gridID != gridID )
{
char paramstr[32];
cdiParamToString(param, paramstr, sizeof(paramstr));
Message("param = %s gridID = %d", paramstr, gridID);
Error("horizontal grid must not change for same param!");
}
if ( vartable[varID].zaxistype != zaxistype )
{
char paramstr[32];
cdiParamToString(param, paramstr, sizeof(paramstr));
Message("param = %s zaxistype = %d", paramstr, zaxistype);
Error("zaxistype must not change for same param!");
}
......@@ -476,6 +475,7 @@ void cdi_generate_vars(stream_t *streamptr)
timaccu = vartable[varid].timaccu;
comptype = vartable[varid].comptype;
level_sf = 1;
if ( vartable[varid].level_sf == 77 ) level_sf = 0.001;
zaxisID = UNDEFID;
......
Supports Markdown
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