Commit 99c7ce52 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

removed some warning messages

parent 57f3c058
......@@ -2899,16 +2899,11 @@ int gridInqXbounds(int gridID, double *xbounds)
grid_t *gridptr = gridID2Ptr(gridID);
size_t nvertex = (size_t)gridptr->nvertex;
if ( CDI_Debug && nvertex == 0 )
Warning("nvertex undefined for gridID = %d", gridID);
int irregular = gridptr->type == GRID_CURVILINEAR
|| gridptr->type == GRID_UNSTRUCTURED;
size_t size = nvertex * (size_t)(irregular ? gridptr->size : gridptr->xsize);
if ( CDI_Debug && size == 0 )
Warning("size undefined for gridID = %d", gridID);
if ( size && xbounds && gridptr->xbounds )
memcpy(xbounds, gridptr->xbounds, size * sizeof (double));
......@@ -2991,16 +2986,11 @@ int gridInqYbounds(int gridID, double *ybounds)
grid_t *gridptr = gridID2Ptr(gridID);
size_t nvertex = (size_t)gridptr->nvertex;
if ( CDI_Debug && nvertex == 0 )
Warning("nvertex undefined for gridID = %d", gridID);
int irregular = gridptr->type == GRID_CURVILINEAR
|| gridptr->type == GRID_UNSTRUCTURED;
size_t size = nvertex * (size_t)(irregular ? gridptr->size : gridptr->ysize);
if ( CDI_Debug && size == 0 )
Warning("size undefined for gridID = %d", gridID);
if ( size && ybounds && gridptr->ybounds )
memcpy(ybounds, gridptr->ybounds, size * sizeof (double));
......
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