IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41501 for trunk


Ignore:
Timestamp:
Feb 22, 2021, 8:56:29 AM (5 years ago)
Author:
eugene
Message:

fix uninitialized variables for optimized build

Location:
trunk/Ohana/src/dvosplit
Files:
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvosplit/src/dvosplit.c

    r41429 r41501  
    99  int i, j, OUT_DEPTH;
    1010  SkyTable *sky;
    11   SkyList *skylist, *outlist;
     11  SkyList *skylist = NULL;
     12  SkyList *outlist = NULL;
    1213  Catalog incatalog, *outcatalogs;
    1314  char *filename, *CATDIR;
     
    7071    if (LocalCopy && (skylist[0].regions[i][0].depth == OUT_DEPTH)) continue;
    7172
     73    // find the list of output filenames (do not yet open)
     74    // we need to check if we have already done the split
     75
     76    // change sky.regions[i].depth for these regions
     77    // outlist = SkyListByPatch (sky, OUT_DEPTH, skylist[0].regions[i]);
     78    outlist = SkyListChildrenByBounds (sky, skylist[0].regions[i][0].index, OUT_DEPTH,
     79                                       skylist[0].regions[i][0].Rmin + 0.01, skylist[0].regions[i][0].Rmax - 0.01,
     80                                       skylist[0].regions[i][0].Dmin + 0.01, skylist[0].regions[i][0].Dmax - 0.01 );
     81
     82    // Modify the outlist filenames to match the output directory.  Note that the
     83    // filenames are now owned by the list (and are not freed by SkyListFree)
     84    SkyListSetFilenames (outlist, OUTDIR, "cpt");
     85
    7286    if (SKIP_EXIST) {
    7387      int allFound = TRUE;
     
    105119      continue;
    106120    }
    107 
    108     // find the list of output filenames (do not yet open)
    109     // we need to check if we have already done the split
    110 
    111     // change sky.regions[i].depth for these regions
    112     // outlist = SkyListByPatch (sky, OUT_DEPTH, skylist[0].regions[i]);
    113     outlist = SkyListChildrenByBounds (sky, skylist[0].regions[i][0].index, OUT_DEPTH,
    114                                        skylist[0].regions[i][0].Rmin + 0.01, skylist[0].regions[i][0].Rmax - 0.01,
    115                                        skylist[0].regions[i][0].Dmin + 0.01, skylist[0].regions[i][0].Dmax - 0.01 );
    116 
    117     // Modify the outlist filenames to match the output directory.  Note that the
    118     // filenames are now owned by the list (and are not freed by SkyListFree)
    119     SkyListSetFilenames (outlist, OUTDIR, "cpt");
    120121
    121122    // inherit the input catalog's format and mode (unless overridden)
Note: See TracChangeset for help on using the changeset viewer.