FEI Version of the Day
fei_chk_mpi.hpp
00001 
00002 #ifndef _fei_chk_mpi_hpp_
00003 #define _fei_chk_mpi_hpp_
00004 
00005 /*--------------------------------------------------------------------*/
00006 /*    Copyright 2005 Sandia Corporation.                              */
00007 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00008 /*    non-exclusive license for use of this work by or on behalf      */
00009 /*    of the U.S. Government.  Export of this program may require     */
00010 /*    a license from the United States Government.                    */
00011 /*--------------------------------------------------------------------*/
00012 
00013 #include <fei_mpi.h>
00014 
00015 #ifdef CHK_MPI
00016 #undef CHK_MPI
00017 #endif
00018 
00019 static const char fei_mpi_file[] = __FILE__;
00020 
00021 #define CHK_MPI(a) { int snl_fei_mpiErrorCode = a; \
00022                      if (snl_fei_mpiErrorCode != MPI_SUCCESS) {\
00023                       fei::console_out() << fei_mpi_file << ", line " << __LINE__  \
00024                            <<" MPI ERROR " << FEI_ENDL; \
00025                       return(snl_fei_mpiErrorCode); \
00026                     } }
00027 #endif
00028 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends