IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14734


Ignore:
Timestamp:
Sep 4, 2007, 10:19:12 AM (19 years ago)
Author:
Paul Price
Message:

Adding check for non-finite sum1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionParams.c

    r14733 r14734  
    251251                sum1 += 1.0 / *wt;
    252252            }
     253        }
     254        if (!isfinite(sum1)) {
     255            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     256                    "Sum of 1/sigma^2 is non-finite for stamp %d (%d,%d)\n",
     257                    i, (int)stamp->x, (int)stamp->y);
     258            psFree(kernels);
     259            return NULL;
    253260        }
    254261    }
Note: See TracChangeset for help on using the changeset viewer.