1 | /* ----------------------------------------------------------------- |
---|
2 | * Programmer(s): Scott Cohen, Alan Hindmarsh, Radu Serban, |
---|
3 | * Aaron Collier, and Slaven Peles @ LLNL |
---|
4 | * ----------------------------------------------------------------- |
---|
5 | * LLNS Copyright Start |
---|
6 | * Copyright (c) 2014, Lawrence Livermore National Security |
---|
7 | * This work was performed under the auspices of the U.S. Department |
---|
8 | * of Energy by Lawrence Livermore National Laboratory in part under |
---|
9 | * Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344. |
---|
10 | * Produced at the Lawrence Livermore National Laboratory. |
---|
11 | * All rights reserved. |
---|
12 | * For details, see the LICENSE file. |
---|
13 | * LLNS Copyright End |
---|
14 | * ----------------------------------------------------------------- |
---|
15 | * This header file contains definitions of MPI data types, which |
---|
16 | * are used by MPI parallel vector implementations. |
---|
17 | * -----------------------------------------------------------------*/ |
---|
18 | |
---|
19 | #include <sundials/sundials_types.h> |
---|
20 | |
---|
21 | /* define MPI data types */ |
---|
22 | |
---|
23 | #if defined(SUNDIALS_SINGLE_PRECISION) |
---|
24 | #define PVEC_REAL_MPI_TYPE MPI_FLOAT |
---|
25 | #elif defined(SUNDIALS_DOUBLE_PRECISION) |
---|
26 | #define PVEC_REAL_MPI_TYPE MPI_DOUBLE |
---|
27 | #elif defined(SUNDIALS_EXTENDED_PRECISION) |
---|
28 | #define PVEC_REAL_MPI_TYPE MPI_LONG_DOUBLE |
---|
29 | #endif |
---|
30 | |
---|
31 | #if defined(SUNDIALS_INT64_T) |
---|
32 | #define PVEC_INTEGER_MPI_TYPE MPI_INT64_T |
---|
33 | #elif defined(SUNDIALS_INT32_T) |
---|
34 | #define PVEC_INTEGER_MPI_TYPE MPI_INT32_T |
---|
35 | #endif |
---|
36 | |
---|