24 void println(
int rank,
const char* pfx,
const char* str );
25 void println(
const char* pfx,
const char* str );
29 fprintf(
filePtr,
"%3d %s%s\n", rank, pfx, str );
47 void println(
int rank,
const char* pfx,
const char* str );
48 void println(
const char* pfx,
const char* str );
53 outStr << rank <<
" " << pfx << str << std::endl;
58 outStr << pfx << str << std::endl;
63 : outputImpl( impl ), mpiRank( -1 ), verbosityLimit( verbosity )
69 : outputImpl( impl ), mpiRank( rank ), verbosityLimit( verbosity )
75 : outputImpl( new
FILEDebugStream( impl ) ), mpiRank( -1 ), verbosityLimit( verbosity )
79 : outputImpl( new
FILEDebugStream( impl ) ), mpiRank( rank ), verbosityLimit( verbosity )
83 : outputImpl( new
CxxDebugStream( str ) ), mpiRank( -1 ), verbosityLimit( verbosity )
87 : outputImpl( new
CxxDebugStream( str ) ), mpiRank( rank ), verbosityLimit( verbosity )
91 : linePfx( pfx ), outputImpl( impl ), mpiRank( -1 ), verbosityLimit( verbosity )
97 : linePfx( pfx ), outputImpl( impl ), mpiRank( rank ), verbosityLimit( verbosity )
103 : linePfx( pfx ), outputImpl( new
FILEDebugStream( impl ) ), mpiRank( -1 ), verbosityLimit( verbosity )
107 : linePfx( pfx ), outputImpl( new
FILEDebugStream( impl ) ), mpiRank( rank ), verbosityLimit( verbosity )
111 : linePfx( pfx ), outputImpl( new
CxxDebugStream( str ) ), mpiRank( -1 ), verbosityLimit( verbosity )
115 : linePfx( pfx ), outputImpl( new
CxxDebugStream( str ) ), mpiRank( rank ), verbosityLimit( verbosity )
120 : linePfx( copy.linePfx ), outputImpl( copy.outputImpl ), mpiRank( copy.mpiRank ),
121 verbosityLimit( copy.verbosityLimit )
158 if( MPI_SUCCESS == MPI_Initialized( &flag ) && flag ) MPI_Comm_rank( MPI_COMM_WORLD, &
mpiRank );
189 #ifdef MOAB_HAVE_VSNPRINTF
205 const unsigned num_chars = 180;
206 unsigned exp_size = ( num_chars / 3 ) * strlen( fmt );
208 unsigned size = vsnprintf( &
lineBuffer[idx], exp_size, fmt, args1 );
211 if(
size > exp_size )
214 fprintf( stderr,
"ERROR: Buffer overflow at %s:%d\n", __FILE__, __LINE__ );
234 assert( end > begin );
239 char* e1 = b1 + snprintf( b1, len,
"%lu", begin );
242 char* e2 = b2 + snprintf( b2, len,
"%lu", end );
245 if( e1 - b1 == e2 - b2 )
249 while( *p && *p == *b1 )
298 if( i->first == i->second )
299 snprintf( numbuf, 48,
" %lu,", (
unsigned long)(
ID_FROM_HANDLE( i->first ) ) );
327 if( i->first == i->second )
328 snprintf( numbuf, 48,
" %lu,", (
unsigned long)( i->first ) );
330 print_range( numbuf, 48, (
unsigned long)( i->first ), (
unsigned long)( i->second ) );
341 std::vector< char >::iterator i;