/[escript]/trunk/finley/src/Util.c
ViewVC logotype

Diff of /trunk/finley/src/Util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 781 by gross, Fri Jun 30 06:37:11 2006 UTC revision 782 by bcumming, Tue Jul 18 00:47:47 2006 UTC
# Line 508  void Finley_printDoubleArray( FILE *fid, Line 508  void Finley_printDoubleArray( FILE *fid,
508      fprintf( fid, "%s [ ", name );      fprintf( fid, "%s [ ", name );
509    else    else
510      fprintf( fid, "[ " );        fprintf( fid, "[ " );  
511    for( i=0; i<(n<30 ? n : 30); i++ )    for( i=0; i<(n<60 ? n : 60); i++ )
512      fprintf( fid, "%g ", array[i] );      fprintf( fid, "%g ", array[i] );
513    if( n>=30 )    if( n>=30 )
514      fprintf( fid, "... " );      fprintf( fid, "... " );
# Line 522  void Finley_printIntArray( FILE *fid, di Line 522  void Finley_printIntArray( FILE *fid, di
522      fprintf( fid, "%s [ ", name );      fprintf( fid, "%s [ ", name );
523    else    else
524      fprintf( fid, "[ " );        fprintf( fid, "[ " );  
525    for( i=0; i<(n<30 ? n : 30); i++ )    for( i=0; i<(n<60 ? n : 60); i++ )
526      fprintf( fid, "%d ", array[i] );      fprintf( fid, "%d ", array[i] );
527    if( n>=30 )    if( n>=30 )
528      fprintf( fid, "... " );      fprintf( fid, "... " );
# Line 536  void Finley_printMaskArray( FILE *fid, d Line 536  void Finley_printMaskArray( FILE *fid, d
536      fprintf( fid, "%s [ ", name );      fprintf( fid, "%s [ ", name );
537    else    else
538      fprintf( fid, "[ " );        fprintf( fid, "[ " );  
539    for( i=0; i<(n<30 ? n : 30); i++ )    for( i=0; i<(n<60 ? n : 60); i++ )
540      if( array[i]!=-1 )      if( array[i]!=-1 )
541        fprintf( fid, "%d ", array[i] );        fprintf( fid, "%3d ", array[i] );
542      else      else
543        fprintf( fid, "* " );        fprintf( fid, "  * " );
544    if( n>=30 )    if( n>=30 )
545      fprintf( fid, "... " );      fprintf( fid, "... " );
546    fprintf( fid, "]\n" );    fprintf( fid, "]\n" );

Legend:
Removed from v.781  
changed lines
  Added in v.782

  ViewVC Help
Powered by ViewVC 1.1.26