IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2032


Ignore:
Timestamp:
Oct 8, 2004, 2:17:14 PM (22 years ago)
Author:
harman
Message:

Added type insertion on time preprocessor malloc

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.c

    r2028 r2032  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-10-08 23:18:27 $
     13 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-10-09 00:17:14 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7474}                                                                                                            \
    7575TIME->sec = 0;                                                                                               \
    76 TIME->usec = 0;
     76TIME->usec = 0;                                                                                              \
     77TIME->type = PS_TIME_TAI;
    7778
    7879
     
    915916
    916917    ALLOC_TIME(outTime);
     918    outTime->type = tai1->type;
    917919
    918920    outTime->sec = tai1->sec + tai2->sec;
     
    938940
    939941    ALLOC_TIME(outTime);
     942    outTime->type = tai1->type;
    940943
    941944    outTime->sec = tai1->sec - tai2->sec;
     
    961964
    962965    ALLOC_TIME(outTime);
     966    outTime->type = tai1->type;
    963967
    964968    outTime->sec = tai1->sec - tai2->sec;
  • trunk/psLib/src/astronomy/psTime.c

    r2028 r2032  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-10-08 23:18:27 $
     13 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-10-09 00:17:14 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7474}                                                                                                            \
    7575TIME->sec = 0;                                                                                               \
    76 TIME->usec = 0;
     76TIME->usec = 0;                                                                                              \
     77TIME->type = PS_TIME_TAI;
    7778
    7879
     
    915916
    916917    ALLOC_TIME(outTime);
     918    outTime->type = tai1->type;
    917919
    918920    outTime->sec = tai1->sec + tai2->sec;
     
    938940
    939941    ALLOC_TIME(outTime);
     942    outTime->type = tai1->type;
    940943
    941944    outTime->sec = tai1->sec - tai2->sec;
     
    961964
    962965    ALLOC_TIME(outTime);
     966    outTime->type = tai1->type;
    963967
    964968    outTime->sec = tai1->sec - tai2->sec;
Note: See TracChangeset for help on using the changeset viewer.