summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2023-04-05 16:02:04 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2023-04-05 16:02:04 +0200
commit6e7717a4e0955fcd54e2b80477456c75127aba54 (patch)
tree2668e6c3e847b383929257defe9c546f7cafa8d7
parent7cc214d81264722e5766885fefa477efd4311e3c (diff)
downloadcode-master.tar.gz
code-master.tar.bz2
code-master.zip
Fixed bug in index counter.HEADmaster
-rw-r--r--collectMorseData.hpp4
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++;
}
}