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

Missing methods for ASEAtoms compatibility #108

Open
jameskermode opened this issue Aug 24, 2018 · 8 comments
Open

Missing methods for ASEAtoms compatibility #108

jameskermode opened this issue Aug 24, 2018 · 8 comments

Comments

@jameskermode
Copy link
Collaborator

Would you be happy to add the following method:

energy(calc::ASE.ASECalculator, at::JuLIP.Atoms) = energy(calc, ASE.ASEAtoms(at))

and the same for forces, stress etc? It would make code which has to call ASECalculators more convenient. Should it go in ASE.jl or JuLIP.jl?

cc. @SMakri

@cortner
Copy link
Member

cortner commented Aug 24, 2018

Should go into ASE.jl

@cortner
Copy link
Member

cortner commented Aug 24, 2018

And the analogue with a non-ASE calculator and ASEAtoms

@cortner
Copy link
Member

cortner commented Aug 24, 2018

I can donut later or Stela can make a PR?

@jameskermode
Copy link
Collaborator Author

Sounds good. minimise!() is a bit more difficult as it modifies the atoms object in place, so copying the input won't work - do you have an idea for that?

@SMakri
Copy link

SMakri commented Aug 24, 2018

This is probably silly, but what does "PR" stand for?

@cortner
Copy link
Member

cortner commented Aug 24, 2018

Pull request

@jameskermode
Copy link
Collaborator Author

I suppose this would work:

function minimise!(at::ASEAtoms, ...) 
    jat = JuLIP.Atoms(at)
    minimise!(jat, ...)
    set_dofs!(at, dofs(jat))
end function

@cortner
Copy link
Member

cortner commented Aug 24, 2018

I need to look at minimise!. Let’s see

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

3 participants