Skip to content

Commit a22c1c0

Browse files
committed
Change compatible solver example
1 parent c4cf1f0 commit a22c1c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/examples/other_solvers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using DFTK
1515
model_kwargs = (; functionals=[:lda_x, :lda_c_pw])
1616
basis_kwargs = (; kgrid=(1, 1, 1), Ecut=20.0)
1717
scf_kwargs = (; tol=1e-6)
18-
calc = DFTKCalculator(; model_kwargs, basis_kwargs, scf_kwargs, verbose=true)
18+
calc = DFTKCalculator(; model_kwargs, basis_kwargs, scf_kwargs)
1919
nothing
2020
```
2121

@@ -46,7 +46,8 @@ using OptimizationNLopt
4646
solver = NLopt.LD_TNEWTON()
4747
4848
results = minimize_energy!(system, calc, solver;
49-
tol_forces=1e-4u"eV/Å", maxeval=100)
49+
tol_forces=1e-4u"eV/Å", verbosity=1,
50+
maxeval=100)
5051
nothing
5152
```
5253

0 commit comments

Comments
 (0)