Skip to content

Commit

Permalink
Update geometric_solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leeping committed Apr 17, 2019
1 parent 98a0bca commit 98a877f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/geomopt/geometric_solver.py
Expand Up @@ -75,7 +75,7 @@ def calc_new(self, coords, dirname):

if self.assert_convergence and not g_scanner.converged:
raise RuntimeError('Nuclear gradients of %s not converged' % g_scanner.base)
return energy, gradients.ravel()
return {"energy": energy, "gradient": gradients.ravel()}

def kernel(method, assert_convergence=ASSERT_CONV,
include_ghost=INCLUDE_GHOST, constraints=None, callback=None,
Expand Down

0 comments on commit 98a877f

Please sign in to comment.