diff options
| -rw-r--r-- | log-fourier_integrator.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 60bdc76..6a4b71a 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -90,6 +90,7 @@ int main(int argc, char* argv[]) {    std::vector<Complex> Ĉₜ = Ĉₜ₋₁;    std::vector<Complex> Ȓₜ = Ȓₜ₋₁; +  Real fac = 1;    Real β = 0;    while (β < βₘₐₓ) {      Real μ₁ = 0; @@ -157,6 +158,7 @@ int main(int argc, char* argv[]) {          Ĉₜ = Ĉₜ₋₁;          Ȓₜ = Ȓₜ₋₁;          μ *= 2; +        fac /= 2;          μ₁ = 0;          μ₂ = 0;        } else { @@ -172,7 +174,7 @@ int main(int argc, char* argv[]) {            /* We found an upper bound */            μ₂ = μ;          } -        μ *= sqrt(sqrt(0.1*std::tanh(Cₜ[0]-1)+1)); +        μ *= sqrt(sqrt(fac*std::tanh(Cₜ[0]-1)+1));        } else {          /* Once the bounds are set, we can use bisection */          if (Cₜ[0] > 1) { | 
