I am in the process of updating ASEconvert to v0.2 (mfherbst/ASEconvert.jl#21)
This works:
import AtomsCalculators: @generate_interface
@generate_interface function AtomsCalculators.calculate(::AtomsCalculators.Energy,
system, calc::ASEcalculator, parameters=nothing, state=nothing; kwargs...)
# ...
end
but this does not
import AtomsCalculators: @generate_interface, calculate, Energy, Forces, Virial
@generate_interface function calculate(::Energy,
system, calc::ASEcalculator, parameters=nothing, state=nothing; kwargs...)
# ...
end
and (related to #23) gives the rather cryptic error message
Possible typo (or other issue) in function definition. Could not determine the type of calculation (energy, forces or virial...).
from which it took me a while to find out what I had to change to the function definition to make the macro work.
@tjjarvinen Could you take a look?
I am in the process of updating ASEconvert to v0.2 (mfherbst/ASEconvert.jl#21)
This works:
but this does not
and (related to #23) gives the rather cryptic error message
from which it took me a while to find out what I had to change to the function definition to make the macro work.
@tjjarvinen Could you take a look?