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

zaxisChangeType: removed call to Message

parent 89c9c159
......@@ -1949,6 +1949,9 @@ void cgribexDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int lev
if ( zaxistype == ZAXIS_GENERIC && ltype == 0 )
{
Message("Changed zaxis type from %s to %s\n",
zaxisNamePtr(zaxistype),
zaxisNamePtr(ZAXIS_PRESSURE));
zaxistype = ZAXIS_PRESSURE;
zaxisChangeType(zaxisID, zaxistype);
zaxisDefUnits(zaxisID, "Pa");
......
......@@ -2193,6 +2193,9 @@ void gribapiDefLevel(grib_handle *gh, int param, int zaxisID, int levelID)
if ( zaxistype == ZAXIS_GENERIC && ltype == 0 )
{
Message("Changed zaxis type from %s to %s\n",
zaxisNamePtr(zaxistype),
zaxisNamePtr(ZAXIS_PRESSURE));
zaxistype = ZAXIS_PRESSURE;
zaxisChangeType(zaxisID, zaxistype);
zaxisDefUnits(zaxisID, "Pa");
......
......@@ -375,6 +375,9 @@ void iegDefLevel(int *pdb, int *gdb, double *vct, int zaxisID, int levelID)
if ( leveltype == ZAXIS_GENERIC )
{
Message("Changed zaxis type from %s to %s\n",
zaxisNamePtr(leveltype),
zaxisNamePtr(ZAXIS_PRESSURE));
leveltype = ZAXIS_PRESSURE;
zaxisChangeType(zaxisID, leveltype);
zaxisDefUnits(zaxisID, "Pa");
......
......@@ -1104,10 +1104,6 @@ void zaxisChangeType(int zaxisID, int zaxistype)
zaxis_check_ptr(zaxisID, zaxisptr);
Message("Changed zaxis type from %s to %s\n",
zaxisNamePtr(zaxisptr->type),
zaxisNamePtr(zaxistype));
zaxisptr->type = zaxistype;
}
......
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