IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2007, 5:15:13 PM (19 years ago)
Author:
magnier
Message:

pedantic initialization of variables

Location:
trunk/psModules/src/objects
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_GAUSS.c

    r10262 r11527  
    6363bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta)
    6464{
    65     float beta_lim, params_min, params_max;
    66     float f1, f2, q1, q2;
     65    float beta_lim = 0, params_min = 0, params_max = 0;
     66    float f1 = 0, f2 = 0, q1 = 0, q2 = 0;
    6767
    6868    // we need to calculate the limits for SXY specially
  • trunk/psModules/src/objects/models/pmModel_PGAUSS.c

    r10262 r11527  
    6565bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta)
    6666{
    67     float beta_lim, params_min, params_max;
    68     float f1, f2, q1, q2;
     67    float beta_lim = 0, params_min = 0, params_max = 0;
     68    float f1 = 0, f2 = 0, q1 = 0, q2 = 0;
    6969
    7070    // we need to calculate the limits for SXY specially
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r11301 r11527  
    8080bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta)
    8181{
    82     float beta_lim, params_min, params_max;
    83     float f1, f2, q1, q2;
     82    float beta_lim = 0, params_min = 0, params_max = 0;
     83    float f1 = 0, f2 = 0, q1 = 0, q2 = 0;
    8484
    8585    // we need to calculate the limits for SXY specially
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r10094 r11527  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-11-20 05:23:23 $
     5 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-02-01 03:15:13 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    478478                      const bool unweighted_sum) // should the cross product be weighted?
    479479{
    480 
    481     int xi, yi;
    482     double flux, wt, factor;
     480    double flux = 0, wt = 0, factor = 0;
    483481
    484482    const psImage *Pi = Mi->pixels;
     
    488486    // note that this is addressing the same image pixels,
    489487    // though only if both are source not model images
    490     flux = 0;
    491     for (yi = 0; yi < Pi->numRows; yi++) {
    492         for (xi = 0; xi < Pi->numCols; xi++) {
     488    for (int yi = 0; yi < Pi->numRows; yi++) {
     489        for (int xi = 0; xi < Pi->numCols; xi++) {
    493490            if (Ti->data.U8[yi][xi])
    494491                continue;
Note: See TracChangeset for help on using the changeset viewer.