Back to index

salome-med  6.5.0
Classes | Functions
MPIAccessTest.hxx File Reference
#include <cppunit/extensions/HelperMacros.h>
#include <set>
#include <string>
#include <iostream>
#include "mpi.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MPIAccessTest
class  MPIAccessTest_TmpFilesRemover

Functions

template<class T >
void MPIAccessTest_DumpArray (std::ostream &stream, const T *array, const int length, const std::string text)
 Tool to print array to stream.

Function Documentation

template<class T >
void MPIAccessTest_DumpArray ( std::ostream &  stream,
const T *  array,
const int  length,
const std::string  text 
)

Tool to print array to stream.

Definition at line 93 of file MPIAccessTest.hxx.

{
  stream << text << ": {";
  if (length > 0) {
    stream << array[0];
    for (int i = 1; i < length; i++) {
      stream << ", " << array[i];
    }
  }
  stream << "}" << std::endl;
}