Skip to content

Commit

Permalink
set -DUSE_QUAD_PRECISION=ON for activating quad precision support
Browse files Browse the repository at this point in the history
  • Loading branch information
shinaoka committed Jun 4, 2016
1 parent 919c533 commit ecaa5c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion src/wide_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <complex>

#ifndef USE_QUAD_FLOAT
#ifndef USE_QUAD_PRECISION

typedef double EXTENDED_REAL;
typedef std::complex<double> EXTENDED_COMPLEX;
Expand Down

0 comments on commit ecaa5c4

Please sign in to comment.