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
After some experiment I found mf.mf_s.kernel(dm0=dm) is not recomended since it will leave mf.mo_coeff undefined.
Running mf.run_scf(dm0=dm); mf.run() seems reasonable.
For this implementation, it is actually encouraged for users running mf.mf_s manually after DH initialized. The attribute mf.mf_s can be arbitrarily changed by user for their demands.
It is not a good way for API design, only scripting available.
dh/pyscf/dh/rdfdh.py
Lines 50 to 56 in 2ac67ac
Since kwargs are not passed to
run_scf
, so currently it's not possible to pass initial guess, is it?So I'm wondering which solution is preferred: allow users passing
dm0
in as kwargs, or encourage users runningmf.mf_s
manually after DH initialized?An even more flexible implementation could be allow initializing upon mf_or_mol, like
https://github.com/pyscf/pyscf/blob/0785373fb5f11105bc41743565cf4b7e13464c92/pyscf/mcscf/casci.py#L779
The text was updated successfully, but these errors were encountered: