Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab_mpi.h
Go to the documentation of this file.
00001 #ifndef MOAB_MPI_H
00002 #define MOAB_MPI_H
00003 #include "moab_mpi_config.h"
00004 // following is to disable inclusion of an openmpi header that causes a compile warning
00005 // since we don't use c++ mpi bindings, we don't need it, and doing this allows us to mark warnings as errors
00006 #define OMPI_SKIP_MPICXX 1
00007 
00008 #ifndef __cplusplus
00009 #include <mpi.h>
00010 #elif !defined( MB_MPI_CXX_CONFLICT )
00011 #ifndef MPICH_IGNORE_CXX_SEEK
00012 #define MPICH_IGNORE_CXX_SEEK
00013 #endif
00014 #include <mpi.h>
00015 #else
00016 #include <stdio.h>
00017 #ifdef SEEK_SET
00018 #undef SEEK_SET
00019 #ifdef MB_SEEK_SET
00020 #define MB_RESTORE_SEEK_SET
00021 #endif
00022 #endif
00023 #ifdef SEEK_CUR
00024 #undef SEEK_CUR
00025 #ifdef MB_SEEK_CUR
00026 #define MB_RESTORE_SEEK_CUR
00027 #endif
00028 #endif
00029 #ifdef SEEK_END
00030 #undef SEEK_END
00031 #ifdef MB_SEEK_END
00032 #define MB_RESTORE_SEEK_END
00033 #endif
00034 #endif
00035 #include <mpi.h>
00036 #ifdef MB_RESTORE_SEEK_SET
00037 #undef MB_RESTORE_SEEK_SET
00038 #define SEEK_SET MB_SEEK_SET
00039 #endif
00040 #ifdef MB_RESTORE_SEEK_CUR
00041 #undef MB_RESTORE_SEEK_CUR
00042 #define SEEK_CUR MB_SEEK_CUR
00043 #endif
00044 #ifdef MB_RESTORE_SEEK_END
00045 #undef MB_RESTORE_SEEK_END
00046 #define SEEK_END MB_SEEK_END
00047 #endif
00048 #endif
00049 
00050 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines