Commit d3b59e42 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Return error code in case of unsuccessful variable definition.

parent 24599264
......@@ -190,7 +190,7 @@ int vlistDefVar(int vlistID, int gridID, int zaxisID, int timeID)
if ( reshGetStatus ( vlistID, &vlist_ops ) == CLOSED )
{
xwarning ( "Operation not executed." );
return;
return CDI_UNDEFID;
}
if ( CDI_Debug )
......@@ -207,7 +207,7 @@ int vlistDefVar(int vlistID, int gridID, int zaxisID, int timeID)
if ( timeID != TIME_VARIABLE && timeID != TIME_CONSTANT )
{
Message("unexpected timeID %d. Set to TIME_VARIABLE", timeID);
vlistptr->vars[varID].timeID = TIME_VARIABLE;
vlistptr->vars[varID].timeID = TIME_VARIABLE;
}
nlevs = zaxisInqSize(zaxisID);
......
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