Commit ae7fdbd6 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Use IS_EQUAL() to compare bounds.

parent ee508552
......@@ -3276,8 +3276,9 @@ static void
check_and_gen_bounds_curv(int gridID, int totalsize, int xnbounds, int xlength, double *xcoord_vals,
double *xcell_bounds, int ynbounds, int ylength, double *ycoord_vals, double *ycell_bounds)
{
if (xnbounds != 4 * totalsize || ynbounds != 4 * totalsize || (xcell_bounds[1] == 0.00 && xcell_bounds[2] == 0.00)
|| (ycell_bounds[1] == 0.00 && ycell_bounds[2] == 0.00))
if (xnbounds != 4 * totalsize || ynbounds != 4 * totalsize
|| (IS_EQUAL(xcell_bounds[1], 0.0) && IS_EQUAL(xcell_bounds[2], 0.0))
|| (IS_EQUAL(ycell_bounds[1], 0.0) && IS_EQUAL(ycell_bounds[2], 0.0))
{
double halflons[xlength + 1][ylength];
double halflats[xlength][ylength + 1];
......
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