5 #ifdef MOAB_HAVE_LIBMPE
14 #define MPE_Seq_begin( A, B ) \
16 if( ( A ) || ( B ) ) \
21 #define MPE_Seq_end( A, B ) \
23 if( ( A ) || ( B ) ) \
28 #define MPE_DelTag( A, B, C, D ) \
31 if( ( A ) || ( B ) || ( C ) || ( D ) ) \
36 #define MPE_GetTags( A, B, C, D ) ( ( A ) = *( C ), *( D ) = 0, if( B ){}, MPI_SUCCESS )
37 #define MPE_ReturnTags( A, B, C ) \
40 if( ( A ) || ( B ) || ( C ) ) \
45 #define MPE_TagsEnd() ( MPI_SUCCESS )
47 #define MPE_IO_Stdout_to_file( A, B ) \
49 if( ( A ) || ( B ) ) \
54 #define MPE_GetHostName( A, B ) \
56 if( ( A ) || ( B ) ) \
61 #define MPI_Start_debugger()
82 #define MPE_Log_OK MPE_LOG_OK
84 #define MPE_LOG_LOCKED_OUT 1
85 #define MPE_Log_LOCKED_OUT MPE_LOG_LOCKED_OUT
87 #define MPE_LOG_NO_MEMORY 2
88 #define MPE_Log_NO_MEMORY MPE_LOG_NO_MEMORY
90 #define MPE_LOG_FILE_PROB 3
91 #define MPE_Log_FILE_PROB MPE_LOG_FILE_PROB
93 #define MPE_LOG_NOT_INITIALIZED 4
94 #define MPE_Log_NOT_INITIALIZED MPE_LOG_NOT_INITIALIZED
96 #define MPE_LOG_PACK_FAIL 5
97 #define MPE_Log_PACK_FAIL MPE_LOG_PACK_FAIL
99 #define MPE_Init_log() ( MPI_SUCCESS )
100 #define MPE_Initialized_logging() 1
102 #define MPE_Describe_state( A, B, C, D ) \
104 if( ( A ) || ( B ) || ( C ) || ( D ) ) \
108 #define MPE_Describe_event( A, B, C ) \
110 if( ( A ) || ( B ) || ( C ) ) \
114 #define MPE_Log_get_event_number()
115 #define MPE_Log_send( A, B, C ) \
117 if( ( A ) || ( B ) || ( C ) ) \
121 #define MPE_Log_receive( A, B, C ) \
123 if( ( A ) || ( B ) || ( C ) ) \
127 #define MPE_Log_event( A, B, C ) \
129 if( ( A ) || ( B ) || ( C ) ) \
133 #define MPE_Start_log()
134 #define MPE_Stop_log()
135 #define MPE_Finish_log( A ) \
156 MPEState(
const char* name,
const char* color = 0 )
162 MPEState() : ok(
false ) {}
168 void start(
int data = 0,
const char* str = 0 )
172 void start(
const char* str,
int data = 0 )
176 void start(
const char* str,
const char* str2 )
178 MPE_Log_event( sid, 0, ( std::string( str ).append( str2 ) ).c_str() );
180 void end(
int data = 0,
const char* str = 0 )
184 void end(
const char* str,
int data = 0 )
200 void log(
int data = 0,
const char* str = 0 )
204 void log(
const char* str,
int data = 0 )