IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37760


Ignore:
Timestamp:
Dec 18, 2014, 2:47:51 PM (12 years ago)
Author:
eugene
Message:

do not save starpar, lensing, lensobj if not loaded (.f == NULL)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_catalog_split.c

    r37731 r37760  
    7676
    7777  // ohana_memcheck_func (TRUE);
     78 
    7879
    7980  if (0) {
     
    979980  }
    980981
    981   /*** Lensing Table ***/
    982   if ((catalog[0].catflags & LOAD_LENSING) && (catalog[0].lensing != NULL)) {
     982  /*** Lensing Table (optional, do not save if not loaded) ***/
     983  if ((catalog[0].catflags & LOAD_LENSING) && catalog[0].lensing_catalog->f && catalog[0].lensing) {
    983984
    984985    first  = 0;                    // first row in memory to write
     
    10061007  }
    10071008
    1008   /*** Lensobj Table ***/
    1009   if ((catalog[0].catflags & LOAD_LENSOBJ) && (catalog[0].lensobj != NULL)) {
     1009  /*** Lensobj Table (optional, do not save if not loaded) ***/
     1010  if ((catalog[0].catflags & LOAD_LENSOBJ) && catalog[0].lensobj_catalog->f && catalog[0].lensobj) {
    10101011
    10111012    first  = 0;                    // first row in memory to write
     
    10331034  }
    10341035
    1035   /*** StarPar Table ***/
    1036   if ((catalog[0].catflags & LOAD_STARPAR) && (catalog[0].starpar != NULL)) {
     1036  /*** StarPar Table (optional, do not save if not loaded) ***/
     1037    if ((catalog[0].catflags & LOAD_STARPAR) && catalog[0].starpar_catalog->f && catalog[0].starpar) {
    10371038
    10381039    first  = 0;                    // first row in memory to write
Note: See TracChangeset for help on using the changeset viewer.