Commit f010a25
Agent
fix(hsolver): replace std::vector<bool> with std::vector<int> in Davidson convergence flags
std::vector<bool> packs bits and is not thread-safe under concurrent
parallel writes from OpenMP, causing non-deterministic hangs/crashes
(e.g. 01_PW/035_PW_15_SO with many threads). Use std::vector<int>
for independent per-element writes in diago_david and diago_dav_subspace.1 parent d27e745 commit f010a25
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments