Skip to content

Commit

Permalink
[doc] update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrmnn committed Feb 22, 2021
1 parent 4b6d042 commit 37ca6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ The Python API consists of coroutine :class:`~berny.Berny` and function

optimizer = Berny(geomlib.readfile('start.xyz'))
solver = MopacSolver()
next(solver)
for geom in optimizer:
energy, gradients = solver(geom)
energy, gradients = solver.send((list(geom), geom.lattice))
optimizer.send((energy, gradients))
relaxed = geom

Expand Down

0 comments on commit 37ca6ec

Please sign in to comment.