IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2107


Ignore:
Timestamp:
Oct 13, 2004, 3:53:20 PM (22 years ago)
Author:
gusciora
Message:

Removed unused vars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psAstrometry01.c

    r2096 r2107  
    55*  @author GLG, MHPCC
    66*
    7 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-10-13 23:58:20 $
     7*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-10-14 01:53:20 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    369369
    370370    return(testStatus);
    371 }
    372 
    373 int test3a( void )
    374 {
    375     int x;
    376     int y;
    377     psPlane fpaCoord;
    378     psFPA *myFPA = genSystem();
    379     psCell *myCell = NULL;
    380     psPlane chipCoord;
    381     psPlane cellCoord;
    382     psPlane testCoord;
    383 
    384     int xReadout = 0;
    385     int xFPA = 0;
    386     for (int chip=0;chip<NUM_CHIPS;chip++) {
    387         for (int cell=0;cell<NUM_CELLS;cell++) {
    388             for(x=0;x<CELL_WIDTH;x++) {
    389                 for (y=0;y<CELL_HEIGHT;y++) {
    390                     fpaCoord.x = (double) xFPA;
    391                     fpaCoord.y = (double) y;
    392                     printf("------------------ (%f, %f) ------------------\n", fpaCoord.x, fpaCoord.y);
    393                 }
    394                 xFPA++;
    395                 xReadout++;
    396             }
    397             // We skip the gaps between cells.
    398             for(x=0;x<CELL_GAP;x++) {
    399                 printf("Column %d is CELL GAP\n", xFPA);
    400                 xFPA++;
    401                 xReadout=0;
    402             }
    403         }
    404         // We skip the gaps between chips.
    405         for (x=0;x<CHIP_GAP;x++) {
    406             printf("Column %d is CHIP GAP\n", xFPA);
    407             xFPA++;
    408             xReadout=0;
    409         }
    410     }
    411 
    412     psFree(myFPA);
    413     return(0);
    414371}
    415372
     
    504461                        psCell *myCell2 = psCellInChip(&chipCoord, tmpChip);
    505462                        if (myCell2 != myCell) {
    506                             printf("ERROR: psCellInFPA() != psCellInChip(psChipInFPA()) (%d %d)\n", myCell2, myCell);
     463                            printf("ERROR: psCellInFPA() != psCellInChip(psChipInFPA()) (%d %d)\n", (int) myCell2, (int) myCell);
    507464                            printCell(myCell2);
    508465                            printCell(myCell);
Note: See TracChangeset for help on using the changeset viewer.