Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geomopt + mpi4pyscf #16

Open
RyanD-1qbit opened this issue Oct 21, 2020 · 0 comments
Open

geomopt + mpi4pyscf #16

RyanD-1qbit opened this issue Oct 21, 2020 · 0 comments

Comments

@RyanD-1qbit
Copy link

Hello,

I am attempting to use the mpi4pyscf RHF method for the pyscf geometric optimization. However, mpi4pyscf.RHF inherits from pyscf.scf, where nuc_grad_method is defined simply with a pass statement.

Running geomopt.optimize() with mpi4pyscf.RHF then raises an error, since nuc_grad_method is NoneType.

On the other hand, the pyscf.RHF method has a meaningful nuc_grad_method (from grad.rhf.Gradient).

I've circumvented this by explicitly defining

mpi4pyscf.RHF.nuc_grad_method = pyscf.grad.rhf.Gradient(mpi4pyscf.RHF)

However I am unsure if this is a suitable workaround. Please advise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant