IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14343


Ignore:
Timestamp:
Jul 20, 2007, 1:35:12 PM (19 years ago)
Author:
magnier
Message:

if modelConv exists, return it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r14321 r14343  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-07-20 00:23:22 $
     8 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-07-20 23:35:12 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    882882
    883883    if (isPSF) {
    884       *isPSF = false;
     884        *isPSF = false;
    885885    }
    886886
    887887    switch (source->type) {
    888     case PM_SOURCE_TYPE_STAR:
     888      case PM_SOURCE_TYPE_STAR:
    889889        model = source->modelPSF;
    890890        if (model == NULL)
     
    896896
    897897// XXX when should I return the modelConv ??
    898     case PM_SOURCE_TYPE_EXTENDED:
    899         model = source->modelEXT;
     898      case PM_SOURCE_TYPE_EXTENDED:
     899        model = source->modelConv;
     900        if (!model) {
     901            model = source->modelEXT;
     902        }
    900903        if (!model && source->modelPSF) {
    901904            if (isPSF) {
     
    907910        break;
    908911
    909     default:
     912      default:
    910913        return NULL;
    911914    }
Note: See TracChangeset for help on using the changeset viewer.