Skip to content
Snippets Groups Projects
Commit b589e29d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

selgridcell: added support for GENERIC grids.

parent 52f3ac67
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,7 @@ gengridcell(int gridID1, size_t gridsize2, long *cellidx)
if (gridtype == GRID_CURVILINEAR) gridtype = GRID_UNSTRUCTURED;
if (gridtype == GRID_UNSTRUCTURED)
if (gridtype == GRID_UNSTRUCTURED || gridtype == GRID_GENERIC)
gridID2 = gridCreate(gridtype, gridsize2);
else
return gridID2;
......
......@@ -45,6 +45,7 @@ genindexgrid(int gridID1, size_t gridsize2, long *cellidx)
int gridID2 = -1;
if (gridtype1 == GRID_UNSTRUCTURED || gridtype1 == GRID_CURVILINEAR) gridID2 = gengridcell(gridID1, gridsize2, cellidx);
else if (gridtype1 == GRID_GENERIC && gridInqYsize(gridID1) == 0) gridID2 = gengridcell(gridID1, gridsize2, cellidx);
if (gridID0 != gridID1) gridDestroy(gridID1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment