Commit 4a4b049a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grid::compareXYvals: bug fix for generic grids

parent 43ef96ab
2011-05-12 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* grid::compareXYvals: bug fix for generic grids [report: Felicia Brisc]
2011-04-28 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* Added attribute standard_name to netCDF time var [request: Karin Meier-Fleischer]
......
......@@ -2247,7 +2247,7 @@ void compareXYvals(int gridID, long xsize, long ysize, double *xvals0, double *y
{
long i;
if ( gridInqXvals(gridID, NULL) )
if ( xsize == gridInqXvals(gridID, NULL) )
{
double *xvals;
......@@ -2265,7 +2265,7 @@ void compareXYvals(int gridID, long xsize, long ysize, double *xvals0, double *y
free(xvals);
}
if ( gridInqYvals(gridID, NULL) )
if ( ysize == gridInqYvals(gridID, NULL) )
{
double *yvals;
......
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