You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted in #140, it is not possible to use metaGGA functionals through the high-level Python class Functional. One needs to use the pybind11-generated bindings directly:
# create empty functionalxc=xcfun_new()
# fill it with SCANcierr=xcfun_set(xc, "SCANc", 1.0)
# set evaluation variables enum (I'm not sure what you'd need here...)vars=XC_N_S_GNN_GNS_GSS_TAUN_TAUS# set evaluation mode enum (you might want another mode)mode=XC_PARTIAL_DERIVATIVES# set the order (0 for energy, etc)order=0# set up evaluation modexcfun_eval_setup(xc, vars, mode, order)
# set input variables as a numpy arraydens= ...
# evaluate, the return value is a numpy arrayret=xcfun_eval(xc, dens)
# clean up functionalxcfun_delete(xc)
The text was updated successfully, but these errors were encountered:
Thanks for the reminder, I had forgotten about it because we currently dont need it.
I will try to have a look in the next weeks, that would be a nice change from all the administration work I am currently doing. If nothing happens, please keep the reminders coming!
As noted in #140, it is not possible to use metaGGA functionals through the high-level Python class
Functional
. One needs to use the pybind11-generated bindings directly:The text was updated successfully, but these errors were encountered: