1- # Julia wrapper for header: xc.h
2- # Automatically generated using Clang.jl
3-
4-
51function xc_reference()
62 ccall((:xc_reference, libxc), Ptr{Cchar}, ())
73end
@@ -146,14 +142,30 @@ function xc_func_set_tau_threshold(p, t_tau)
146142 ccall((:xc_func_set_tau_threshold, libxc), Cvoid, (Ptr{xc_func_type}, Cdouble), p, t_tau)
147143end
148144
145+ function xc_func_set_fhc_enforcement(p, on)
146+ ccall((:xc_func_set_fhc_enforcement, libxc), Cvoid, (Ptr{xc_func_type}, Cint), p, on)
147+ end
148+
149149function xc_func_set_ext_params(p, ext_params)
150150 ccall((:xc_func_set_ext_params, libxc), Cvoid, (Ptr{xc_func_type}, Ptr{Cdouble}), p, ext_params)
151151end
152152
153+ function xc_func_get_ext_params(p, ext_params)
154+ ccall((:xc_func_get_ext_params, libxc), Cvoid, (Ptr{xc_func_type}, Ptr{Cdouble}), p, ext_params)
155+ end
156+
153157function xc_func_set_ext_params_name(p, name, par)
154158 ccall((:xc_func_set_ext_params_name, libxc), Cvoid, (Ptr{xc_func_type}, Ptr{Cchar}, Cdouble), p, name, par)
155159end
156160
161+ function xc_func_get_ext_params_name(p, name)
162+ ccall((:xc_func_get_ext_params_name, libxc), Cdouble, (Ptr{xc_func_type}, Ptr{Cchar}), p, name)
163+ end
164+
165+ function xc_func_get_ext_params_value(p, number)
166+ ccall((:xc_func_get_ext_params_value, libxc), Cdouble, (Ptr{xc_func_type}, Cint), p, number)
167+ end
168+
157169function xc_lda_new(p, order, np, rho, out)
158170 ccall((:xc_lda_new, libxc), Cvoid, (Ptr{xc_func_type}, Cint, Csize_t, Ptr{Cdouble}, Ptr{xc_lda_out_params}), p, order, np, rho, out)
159171end
@@ -162,6 +174,10 @@ function xc_gga_new(p, order, np, rho, sigma, out)
162174 ccall((:xc_gga_new, libxc), Cvoid, (Ptr{xc_func_type}, Cint, Csize_t, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{xc_gga_out_params}), p, order, np, rho, sigma, out)
163175end
164176
177+ function xc_mgga_new(func, order, np, rho, sigma, lapl, tau, out)
178+ ccall((:xc_mgga_new, libxc), Cvoid, (Ptr{xc_func_type}, Cint, Csize_t, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{xc_mgga_out_params}), func, order, np, rho, sigma, lapl, tau, out)
179+ end
180+
165181function xc_lda(p, np, rho, zk, vrho, v2rho2, v3rho3, v4rho4)
166182 ccall((:xc_lda, libxc), Cvoid, (Ptr{xc_func_type}, Csize_t, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}), p, np, rho, zk, vrho, v2rho2, v3rho3, v4rho4)
167183end
0 commit comments