Skip to content

Commit

Permalink
Add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib committed Sep 17, 2024
1 parent cbf7b13 commit b6e1209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dyson/solvers/chempot.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def _kernel(self):
weights = self.gf.weights()
low, high = 0, self.gf.naux
mid = high//2
for iter in range(100):
for iter in range(100):
sum = self.occupancy * weights[:mid].sum()
self.log.debug("Number of electrons [0:%d] = %.6f", iter + 1, sum)
if sum < self.nelec:
low = mid
mid = mid + (high-low)//2
Expand Down

0 comments on commit b6e1209

Please sign in to comment.