From 24f997ecbb05b74b3cb4de2979943b28ff782f1c Mon Sep 17 00:00:00 2001 From: sjplimp Date: Sat, 13 Dec 2014 00:42:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12828 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/read_data.cpp | 5 +++++ src/read_dump.cpp | 5 +++++ src/thermo.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/read_data.cpp b/src/read_data.cpp index ed7acf22ac..7fe63f1cc1 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -11,6 +11,11 @@ See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ +// lmptype.h must be first b/c this file uses MAXBIGINT and includes mpi.h +// due to OpenMPI bug which sets INT64_MAX via its mpi.h +// before lmptype.h can set flags to insure it is done correctly + +#include "lmptype.h" #include "mpi.h" #include "math.h" #include "string.h" diff --git a/src/read_dump.cpp b/src/read_dump.cpp index 14b208e994..45ff1f81bf 100644 --- a/src/read_dump.cpp +++ b/src/read_dump.cpp @@ -15,6 +15,11 @@ Contributing author: Timothy Sirk (ARL) ------------------------------------------------------------------------- */ +// lmptype.h must be first b/c this file uses MAXBIGINT and includes mpi.h +// due to OpenMPI bug which sets INT64_MAX via its mpi.h +// before lmptype.h can set flags to insure it is done correctly + +#include "lmptype.h" #include "mpi.h" #include "string.h" #include "stdlib.h" diff --git a/src/thermo.cpp b/src/thermo.cpp index 3656300f51..a1a42ed974 100644 --- a/src/thermo.cpp +++ b/src/thermo.cpp @@ -11,6 +11,11 @@ See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ +// lmptype.h must be first b/c this file uses MAXBIGINT and includes mpi.h +// due to OpenMPI bug which sets INT64_MAX via its mpi.h +// before lmptype.h can set flags to insure it is done correctly + +#include "lmptype.h" #include "mpi.h" #include "math.h" #include "stdlib.h"