IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37100


Ignore:
Timestamp:
Jul 22, 2014, 2:53:13 PM (12 years ago)
Author:
eugene
Message:

if no output catalog exists, use input catalog format for output; use MARKTIME, INITTIME macros

Location:
branches/eam_branches/ipp-20140717/Ohana/src/dvomerge/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/Ohana/src/dvomerge/src/dvomergeUpdate.c

    r36528 r37100  
    1313  int NsecfiltInput, NsecfiltOutput;
    1414
    15   double dtime;
    16   struct timeval start, stop;
    17   gettimeofday (&start, NULL);
     15  INITTIME;
    1816
    1917  CONTINUE = FALSE;
     
    121119  }
    122120
    123   gettimeofday (&stop, NULL);
    124   dtime = DTIME (stop, start);
    125 
    126121  if (!status) {
    127     fprintf (stderr, "ERROR: elapsed time %9.4f sec\n", dtime);
     122    MARKTIME ("ERROR: elapsed time %9.4f sec\n", dtime);
    128123    exit (3);
    129124  }
    130125
    131   fprintf (stderr, "SUCCESS: elapsed time %9.4f sec\n", dtime);
     126  MARKTIME ("SUCCESS: elapsed time %9.4f sec\n", dtime);
    132127  exit (0);
    133128}
  • branches/eam_branches/ipp-20140717/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r37084 r37100  
    163163      LoadCatalog (&outcatalog, outlist[0].regions[j], outcatalog.filename, "w", NsecfiltOutput);
    164164
     165      // if no catalog already exists, use the input catalog to define the format
     166      if (outcatalog.Naves_disk == 0) {
     167        outcatalog.catformat = incatalog.catformat;
     168      }
     169
    165170      merge_catalogs_old (outlist[0].regions[j], &outcatalog, &incatalog, RADIUS, secfiltMap);
    166171
  • branches/eam_branches/ipp-20140717/Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c

    r37084 r37100  
    113113  int NsecfiltInput, NsecfiltOutput;
    114114
    115   double dtime;
    116   struct timeval start, stop;
    117   gettimeofday (&start, NULL);
     115  INITTIME;
    118116
    119117  CONTINUE = FALSE;
     
    132130
    133131  fprintf (stderr, "WARNING / ERROR : multi-threaded dvomerge does not handle merge tracking yet\n");
     132  fprintf (stderr, "WARNING / ERROR : multi-threaded dvomerge does work in a parallel context\n");
    134133  exit (2);
    135134
     
    291290  }
    292291
    293   gettimeofday (&stop, NULL);
    294   dtime = DTIME (stop, start);
    295   fprintf (stderr, "SUCCESS: elapsed time %9.4f sec\n", dtime);
    296 
     292  MARKTIME ("SUCCESS: elapsed time %9.4f sec\n", dtime);
    297293  exit (0);
    298294
     
    316312    }
    317313  }
     314  MARKTIME ("ERROR: elapsed time %9.4f sec\n", dtime);
    318315  exit (1);
    319316}
Note: See TracChangeset for help on using the changeset viewer.