Commit 73e76d06 authored by Uwe Schulzweida's avatar Uwe Schulzweida

setgridtype,regular: check gridID2

parent 654f5dbd
......@@ -226,6 +226,7 @@ void *Setgrid(void *argument)
for ( index = 0; index < ngrids; index++ )
{
gridID1 = vlistGrid(vlistID1, index);
gridID2 = -1;
if ( lregular )
{
......@@ -261,6 +262,8 @@ void *Setgrid(void *argument)
else cdoAbort("Unsupported grid name: %s", gridname);
}
if ( gridID2 == -1 ) cdoAbort("Unsupported grid type!");
vlistChangeGridIndex(vlistID2, index, gridID2);
}
}
......
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