Skip to content

Commit

Permalink
Change compatible solver example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Aug 10, 2024
1 parent c4cf1f0 commit a22c1c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/examples/other_solvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using DFTK
model_kwargs = (; functionals=[:lda_x, :lda_c_pw])
basis_kwargs = (; kgrid=(1, 1, 1), Ecut=20.0)
scf_kwargs = (; tol=1e-6)
calc = DFTKCalculator(; model_kwargs, basis_kwargs, scf_kwargs, verbose=true)
calc = DFTKCalculator(; model_kwargs, basis_kwargs, scf_kwargs)
nothing
```

Expand Down Expand Up @@ -46,7 +46,8 @@ using OptimizationNLopt
solver = NLopt.LD_TNEWTON()
results = minimize_energy!(system, calc, solver;
tol_forces=1e-4u"eV/Å", maxeval=100)
tol_forces=1e-4u"eV/Å", verbosity=1,
maxeval=100)
nothing
```

Expand Down

0 comments on commit a22c1c0

Please # to comment.