diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2023-04-05 16:02:04 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2023-04-05 16:02:04 +0200 |
commit | 6e7717a4e0955fcd54e2b80477456c75127aba54 (patch) | |
tree | 2668e6c3e847b383929257defe9c546f7cafa8d7 | |
parent | 7cc214d81264722e5766885fefa477efd4311e3c (diff) | |
download | code-master.tar.gz code-master.tar.bz2 code-master.zip |
-rw-r--r-- | collectMorseData.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectMorseData.hpp b/collectMorseData.hpp index eddb825..fdee480 100644 --- a/collectMorseData.hpp +++ b/collectMorseData.hpp @@ -34,7 +34,7 @@ void collectMorseData(std::string tag, unsigned N, Generator& r, Real ε, Real Πunsigned indx = 0; for (Real λ : eigenS.eigenvalues().real()) { - if (λ < 0) indx++; + if (λ < 0 && std::abs(λ) > 1e-14) indx++; } pSpinModel M = ReM; @@ -64,7 +64,7 @@ void collectMorseData(std::string tag, unsigned N, Generator& r, Real ε, Real Πindz = 0; for (Real λ : eigenSz.eigenvalues().real()) { - if (λ < 0) indz++; + if (λ < 0 && std::abs(λ) > 1e-14) indz++; } } |