IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5177


Ignore:
Timestamp:
Sep 29, 2005, 8:59:01 AM (21 years ago)
Author:
gusciora
Message:

....

Location:
trunk/psLib/src/mathtypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r5173 r5177  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-09-28 22:12:10 $
     11 *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-09-29 18:59:01 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    632632    }
    633633    write(fd,"\n",1);
     634    return (true);
     635}
     636
     637XXXX:
     638Remove this
     639bool p_psImagePrintOLD (int fd, psImage *a, char *name)
     640{
     641    printf("matrix: %s\n", name);
     642    for (int j = 0; j < a[0].numRows; j++) {
     643        for (int i = 0; i < a[0].numCols; i++) {
     644            printf("%f  ", p_psImageGetElementF64(a, i, j));
     645        }
     646        printf("\n");
     647    }
     648    printf("\n");
     649    fflush(stdout);
    634650    return (true);
    635651}
  • trunk/psLib/src/mathtypes/psVector.c

    r5137 r5177  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-09-26 22:35:53 $
     11*  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-09-29 18:59:01 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    603603                      char *name)
    604604{
    605     FILE *f;
    606     f = fdopen(fd, "a+");
    607     fprintf (f, "vector: %s\n", name);
    608 
     605    /*
     606        XXXX: This is seg faulting.  So I'm getting rid of it.
     607        FILE *f;
     608        f = fdopen(fd, "a+");
     609        fprintf (f, "vector: %s\n", name);
     610     
     611        for (int i = 0; i < a[0].n; i++) {
     612            fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
     613        }
     614        fprintf (f, "\n");
     615    // XXXX: temp fix: this should be recoded.
     616    //    fclose(f);
     617        return (true);
     618    */
     619
     620    printf ("vector: %s\n", name);
    609621    for (int i = 0; i < a[0].n; i++) {
    610         fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
    611     }
    612     fprintf (f, "\n");
    613     fclose(f);
     622        printf("%f\n", p_psVectorGetElementF64(a, i));
     623    }
     624    printf("\n");
     625    fflush(stdout);
    614626    return (true);
    615627}
Note: See TracChangeset for help on using the changeset viewer.