monolish  0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
monolish_mpi.hpp
Go to the documentation of this file.
1 // this source code is generated by include/mpi/gen_all.sh
2 #pragma once
3 
5 #include <climits>
6 #include <vector>
7 
8 #if defined MONOLISH_USE_MPI
9 #include <mpi.h>
10 #else
11 // MPI dummy
13 #endif
14 
15 #if SIZE_MAX == ULONG_MAX
16 #define MPI_SIZE_T MPI_UNSIGNED_LONG
17 #elif SIZE_MAX == ULLONG_MAX
18 #define MPI_SIZE_T MPI_UNSIGNED_LONG_LONG
19 #elif SIZE_MAX == UINT_MAX
20 #define MPI_SIZE_T MPI_UNSIGNED
21 #endif
22