cgma
CGMmpi.h
Go to the documentation of this file.
00001 #ifndef CGM_MPI_H
00002 #define CGM_MPI_H
00003 #include "CGMmpi_config.h"
00004 
00005 #ifndef __cplusplus
00006 #  include <mpi.h>
00007 #elif !defined(CGM_MPI_CXX_CONFLICT)
00008 #  ifndef MPICH_IGNORE_CXX_SEEK
00009 #    define MPICH_IGNORE_CXX_SEEK
00010 #  endif
00011 #  include <mpi.h>
00012 #else
00013 #  include <stdio.h>
00014 #  ifdef SEEK_SET
00015 #    undef SEEK_SET
00016 #    ifdef CGM_SEEK_SET
00017 #      define CGM_RESTORE_SEEK_SET
00018 #    endif
00019 #  endif
00020 #  ifdef SEEK_CUR
00021 #    undef SEEK_CUR
00022 #    ifdef CGM_SEEK_CUR
00023 #      define CGM_RESTORE_SEEK_CUR
00024 #    endif
00025 #  endif
00026 #  ifdef SEEK_END
00027 #    undef SEEK_END
00028 #    ifdef CGM_SEEK_END
00029 #      define CGM_RESTORE_SEEK_END
00030 #    endif
00031 #  endif
00032 #  include <mpi.h>
00033 #  ifdef CGM_RESTORE_SEEK_SET
00034 #    undef CGM_RESTORE_SEEK_SET
00035 #    define SEEK_SET CGM_SEEK_SET
00036 #  endif
00037 #  ifdef CGM_RESTORE_SEEK_CUR
00038 #    undef CGM_RESTORE_SEEK_CUR
00039 #    define SEEK_CUR CGM_SEEK_CUR
00040 #  endif
00041 #  ifdef CGM_RESTORE_SEEK_END
00042 #    undef CGM_RESTORE_SEEK_END
00043 #    define SEEK_END CGM_SEEK_END
00044 #  endif
00045 #endif
00046 
00047 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines