Back to index

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

Go to the source code of this file.

Defines

#define ENABLE_FAULTS
#define ENABLE_FORCED_FAILURES
#define maxreq   100
#define datamsglength   10

Functions

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

Define Documentation

#define datamsglength   10
#define ENABLE_FAULTS

Definition at line 31 of file test_AllToAllDEC.cxx.

Definition at line 34 of file test_AllToAllDEC.cxx.

#define maxreq   100

Function Documentation

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

Definition at line 46 of file test_AllToAllDEC.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 << "===========================================================" << endl
              << "test_AllToAllDEC" << myrank << " KO" << endl
              << "==========================================================="
              << 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: