Commit 86ee95ca authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

No commit message

No commit message
parent b8aca083
...@@ -2104,7 +2104,8 @@ static void grid_check_cyclic(GRID *gridptr) ...@@ -2104,7 +2104,8 @@ static void grid_check_cyclic(GRID *gridptr)
{ {
xinc = xvals[1] - xvals[0]; xinc = xvals[1] - xvals[0];
x0 = 2*xvals[xsize-1]-xvals[xsize-2]-360; x0 = 2*xvals[xsize-1]-xvals[xsize-2]-360;
if ( DBL_IS_EQUAL(x0, xvals[0]) ) gridptr->isCyclic = TRUE; if ( ! DBL_IS_EQUAL(xvals[0], xvals[xsize-1]) )
if ( DBL_IS_EQUAL(x0, xvals[0]) ) gridptr->isCyclic = TRUE;
} }
} }
else if ( gridptr->type == GRID_CURVILINEAR ) else if ( gridptr->type == GRID_CURVILINEAR )
......
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