-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use same dilogarithm function in FORTRAN and C++ module for 2-loop co…
…rrections This modification 1) fixes the following compilation error on MacOS when creating libDSZ.dynlib: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Undefined symbols for architecture x86_64: "himalaya::dilog(double)", referenced from: himalaya::mssm_twoloophiggs::delta_ma2_2loop_at_as_mst1_eq_mst2(double, double, double, double, double, double, double, double, double, double, double) in DSZHiggs.cpp.o himalaya::mssm_twoloophiggs::delta_mh2_2loop_at_as(double, double, double, double, double, double, double, double, double, double, double, int) in DSZHiggs.cpp.o ld: symbol(s) not found for architecture x86_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2) ensures that the same precision is used to evaluate the 2-loop corrections both in the FORTRAN and in the C++ module
- Loading branch information
Showing
7 changed files
with
12,184 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// ==================================================================== | ||
// This file is part of Himalaya. | ||
// | ||
// Himalaya is licenced under the GNU General Public License (GNU GPL) | ||
// version 3. | ||
// ==================================================================== | ||
|
||
#include <complex> | ||
|
||
namespace himalaya { | ||
|
||
/// real dilogarithm from FORTRAN module | ||
double li2(double); | ||
|
||
/// complex dilogarithm from FORTRAN module | ||
std::complex<double> li2(const std::complex<double>&); | ||
|
||
} // namespace himalaya |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// ==================================================================== | ||
// This file is part of Himalaya. | ||
// | ||
// Himalaya is licenced under the GNU General Public License (GNU GPL) | ||
// version 3. | ||
// ==================================================================== | ||
|
||
#include "li2.hpp" | ||
#include <complex> | ||
|
||
/// complex dilogarithm from FORTRAN module | ||
extern "C" int li2c_(double*, double*, double*, double*); | ||
|
||
namespace himalaya { | ||
|
||
/// real dilogarithm from FORTRAN module | ||
double li2(double x) | ||
{ | ||
const std::complex<double> z(x, 0.); | ||
return std::real(li2(z)); | ||
} | ||
|
||
/// complex dilogarithm from FORTRAN module | ||
std::complex<double> li2(const std::complex<double>& z) | ||
{ | ||
double re_in = z.real(); | ||
double im_in = z.imag(); | ||
double re_out = 0.; | ||
double im_out = 0.; | ||
|
||
li2c_(&re_in, &im_in, &re_out, &im_out); | ||
|
||
return std::complex<double>(re_out, im_out); | ||
} | ||
|
||
} // namespace himalaya |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.