Skip to content

Commit af35d18

Browse files
authored
Merge pull request #12 from scarrazza/fixt4
Fixing finite part of triangle configuration with real masses and m1=p1, m2=m3=p2=0
2 parents 1bdef72 + 7c8cf22 commit af35d18

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Diff for: CMakeLists.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ configure_file(
4646
set(QUADMATH_NAMES ${QUADMATH_NAMES} libquadmath.so quadmath)
4747
find_library(QUADMATH_LIBRARY
4848
NAMES ${QUADMATH_NAMES}
49-
PATHS /usr/lib64/atlas /usr/lib/atlas
50-
/usr/lib64 /usr/lib /usr/local/lib64
49+
PATHS /usr/lib64/atlas /usr/lib/atlas
50+
/usr/lib64 /usr/lib /usr/local/lib64
5151
/usr/local/lib /usr/x86_64-linux-gnu/*
5252
/usr/lib/gcc/x86_64-linux-gnu/*
53+
/usr/lib/gcc/x86_64-redhat-linux/*
5354
)
5455

5556
if(QUADMATH_LIBRARY)
@@ -105,7 +106,7 @@ if(ENABLE_EXAMPLES)
105106
add_executable(cache_test examples/cache_test.cc)
106107
target_link_libraries(cache_test qcdloop ${QUADMATH_LIBRARIES})
107108
set_target_properties(cache_test PROPERTIES LINK_FLAGS "-Wl,-rpath,./")
108-
109+
109110
add_executable(cmass_test examples/cmass_test.cc)
110111
target_link_libraries(cmass_test qcdloop ${QUADMATH_LIBRARIES})
111112
set_target_properties(cmass_test PROPERTIES LINK_FLAGS "-Wl,-rpath,./")

Diff for: src/qcdloop-config.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tmp=$( echo "$*" | egrep -- '--\<incdir\>')
2828
test -n "$tmp" && OUT="$OUT @includedir@"
2929

3030
tmp=$( echo "$*" | egrep -- '--\<cppflags\>')
31-
test -n "$tmp" && OUT="$OUT -I@includedir@"
31+
test -n "$tmp" && OUT="$OUT -I@includedir@ -std=c++11"
3232

3333
tmp=$( echo "$*" | egrep -- '--\<libdir\>')
3434
test -n "$tmp" && OUT="$OUT @libdir@"

Diff for: src/qcdloop/maths.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ namespace ql
3434
inline qcomplex Sqrt(qcomplex const& x){ return csqrtq(x); }
3535

3636
// Absolute value
37-
inline double Abs(double const& x) { return std::fabs(x); }
37+
inline double Abs(double const& x) { return std::abs(x); }
3838
inline qdouble Abs(qdouble const& x) { return fabsq(x);}
39-
inline double Abs(complex const& x) { return std::fabs(x);}
39+
inline double Abs(complex const& x) { return std::abs(x);}
4040
inline qdouble Abs(qcomplex const& x) { return cabsq(x); }
4141

4242
// Complex tools, imag, real and conj.

Diff for: src/triangle.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ namespace ql
888888
const TOutput ct = TOutput(this->_pi2o6);
889889

890890
TOutput dilog2;
891-
if (Abs(omarg2) < this->_zero)
891+
if (Real(omarg2) < this->_zero)
892892
dilog2 = ct-TOutput(this->ddilog(omarg2))-Log(arg2)*wlog;
893893
else
894894
dilog2 = TOutput(this->ddilog(arg2));

0 commit comments

Comments
 (0)