Skip to content

Commit

Permalink
strictly enforce ne
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Dec 17, 2024
1 parent 8d71d1a commit 81c951c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dft/newton_minimization_smearing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ newton_minimization_chemical_potential(
{
// Newton finds the minimum, not necessarily N(mu) == ne, tolerate up to `tol_ne` difference in
// number of electrons if |N(mu_0) -ne| > tol_ne an error is thrown.
const double tol_ne = 1e-2;
const double tol_ne = 1e-10;

double mu = mu0;
int iter{0};
Expand Down

0 comments on commit 81c951c

Please sign in to comment.