From ecaa5c47765abd6e7ce40564432bc6a3bdbbeaba Mon Sep 17 00:00:00 2001 From: Hiroshi Shinaoka Date: Sun, 5 Jun 2016 06:17:36 +0900 Subject: [PATCH] set -DUSE_QUAD_PRECISION=ON for activating quad precision support --- CMakeLists.txt | 6 ++++++ src/wide_scalar.hpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14c92a1..922a0cf 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,12 @@ find_package(Boost 1.55.0 REQUIRED timer) find_package(MPI REQUIRED) find_package(Eigen3 REQUIRED) +# Option (use quad precision for part of calculations) +option(USE_QUAD_PRECISION "Use quad precision for part of calculations" OFF) +if(USE_QUAD_PRECISION) + add_definitions(-DUSE_QUAD_PRECISION) +endif() + #ALPSCore disable debug for gf library set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_DISABLE_ASSERTS -DNDEBUG") diff --git a/src/wide_scalar.hpp b/src/wide_scalar.hpp index 42a9f70..119b28e 100644 --- a/src/wide_scalar.hpp +++ b/src/wide_scalar.hpp @@ -7,7 +7,7 @@ #include -#ifndef USE_QUAD_FLOAT +#ifndef USE_QUAD_PRECISION typedef double EXTENDED_REAL; typedef std::complex EXTENDED_COMPLEX;