Skip to content

Commit e0309f3

Browse files
committed
Fixed mpfr include
1 parent 6a8aae8 commit e0309f3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/optimization/globals.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#include "conformal_ideal_delaunay/globals.hh"
55
#include <Eigen/Sparse>
66
#include <string>
7-
#include "mpreal.h"
87

98
namespace CurvatureMetric {
109
using namespace OverlayProblem;
1110

1211
#ifdef MULTIPRECISION
12+
#include "mpreal.h"
1313
#include <unsupported/Eigen/MPRealSupport>
1414
typedef mpfr::mpreal Scalar;
1515
#else

src/optimization/optimization_interface.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ namespace CurvatureMetric
6868
{
6969
// Get precise value of pi
7070
Scalar pi;
71-
if (std::is_same<Scalar, mpfr::mpreal>::value)
72-
pi = Scalar(mpfr::const_pi());
73-
else
74-
pi = Scalar(M_PI);
71+
#ifdef MULTIPRECISION
72+
pi = Scalar(mpfr::const_pi());
73+
#else
74+
pi = Scalar(M_PI);
75+
#endif
7576

7677
// Correct angles
7778
int num_vertices = initial_cone_angles.size();

0 commit comments

Comments
 (0)