COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
types.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #ifndef cf3_common_PE_types_hpp
8 #define cf3_common_PE_types_hpp
9 
10 #include <mpi.h>
12 
14 
18 
20 #define MPI_CHECK_RESULT( MPIFunc, Args ) \
21 { \
22  int check_result = MPIFunc Args; \
23  if (check_result != MPI_SUCCESS) \
24  throw cf3::common::ParallelError(FromHere(), \
25  std::string("Function: ") + \
26  std::string( #MPIFunc ) + \
27  std::string( " did not return MPI_SUCCESS (" ) + \
28  cf3::common::to_str(check_result) + \
29  std::string(").") ); \
30 }
31 
33 
34 namespace cf3 {
35 namespace common {
36 namespace PE {
37 
39 
41 typedef MPI_Comm Communicator;
42 
44 typedef MPI_Op Operation;
45 
47 typedef MPI_Datatype Datatype;
48 
50 
51 } // namespace PE
52 } // namespace common
53 } // namespace cf3
54 
56 
57 #endif // cf3_common_PE_types_hpp
MPI_Datatype Datatype
datatype
Definition: types.hpp:47
Top-level namespace for coolfluid.
Definition: Action.cpp:18
MPI_Comm Communicator
communicator
Definition: types.hpp:41
MPI_Op Operation
operation (mostly for reduce and all_reduce)
Definition: types.hpp:44
Send comments to:
COOLFluiD Web Admin