Back to index

salome-med  6.5.0
Defines | Functions
test_MPI_Access_Time_0.cxx File Reference
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <mpi.h>
#include "MPIAccessTest.hxx"
#include <cppunit/TestAssert.h>
#include "MPIAccess.hxx"

Go to the source code of this file.

Defines

#define ENABLE_FAULTS
#define ENABLE_FORCED_FAILURES
#define maxreq   100

Functions

void chksts (int sts, int myrank, ParaMEDMEM::MPIAccess *mpi_access)

Define Documentation

#define ENABLE_FAULTS

Definition at line 35 of file test_MPI_Access_Time_0.cxx.

Definition at line 38 of file test_MPI_Access_Time_0.cxx.

#define maxreq   100

Function Documentation

void chksts ( int  sts,
int  myrank,
ParaMEDMEM::MPIAccess mpi_access 
)

Definition at line 43 of file test_MPI_Access_Time_0.cxx.

                                                                       {
  char msgerr[MPI_MAX_ERROR_STRING] ;
  int lenerr ;
  if ( sts != MPI_SUCCESS ) {
    mpi_access->errorString(sts, msgerr, &lenerr) ;
    cout << "test" << myrank << " lenerr " << lenerr << " "
         << msgerr << endl ;
    ostringstream strstream ;
    strstream << "==========================================================="
              << "test" << myrank << " KO"
              << "==========================================================="
              << endl ;
    cout << strstream.str() << endl ;
    CPPUNIT_FAIL( strstream.str() ) ;
  }
return ;
}

Here is the call graph for this function:

Here is the caller graph for this function: