Commit 853a6f4b authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Changed grid substitution

parent 65e59a23
......@@ -2446,8 +2446,12 @@ static void change_grid(char *grid_file, int gridID, int vlistID)
if ( a != b )
cdoAbort("Could not use grid from file '%s' configured via attribute 'ginfo'\n because xsize of $IFILE: '%d' is not identical to xsize of ginfo file: '%d'.", grid_file, a, b);
vlistChangeGrid(vlistID, gridID, gridID2);
if ( gridID != gridID2 )
{
vlistChangeGrid(vlistID, gridID, gridID2);
}
cdoPrint("Successfully substituted grid.");
pstreamClose(streamID2);
}
......
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