From f202f1bcf6b5b9dd9bdbfc4b688434eb4e38c854 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Fri, 27 Apr 2018 14:15:32 -0400 Subject: [PATCH] workaround for ISFINITE() macro to work with the latest KOKKOS library update --- src/lmptype.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lmptype.h b/src/lmptype.h index 253f9a7470..6c3cbb59ed 100644 --- a/src/lmptype.h +++ b/src/lmptype.h @@ -39,6 +39,7 @@ #include <limits.h> #include <stdint.h> #include <inttypes.h> +#include <cmath> // grrr - IBM Power6 does not provide this def in their system header files @@ -200,7 +201,7 @@ typedef int bigint; #define _noalias #endif -#define ISFINITE(x) isfinite(x) +#define ISFINITE(x) std::isfinite(x) // settings to enable LAMMPS to build under Windows -- GitLab