Hi,
psi4 version: 1.3.2
Thanks to your previous help, I managed to save my wavefunction object into a separate file and to read it from an external script. But when I try a (for instance) CASCI calculation, a segmentation fault appears:
INPUT: (Note that I work without symmetry)
some code...
old_wfn.to_file("wfn")
new_wfn = psi4.core.Wavefunction.from_file("wfn")
psi4.compare_wavefunctions(scf_wfn, avas_wfn, label='Serialization Check 1')
N_active = 11
N_frozen = 4
N_virtual = 30
psi4.set_options({'ACTIVE' : [ N_active ],\
'FROZEN_DOCC' : [ N_frozen ],\
'FROZEN_UOCC' : [ N_virtual],\
'DIAG_METHOD' : 'DAVIDSON',\
'CI_MAXITER' : 200\
})
PSI4_CASCI_energy = psi4.energy('fci', molecule=mol, ref_wfn=new_wfn, return_wfn=False)
OUTPUT:
compare Ca........................................................PASSED
compare Cb........................................................PASSED
compare Da........................................................PASSED
compare Db........................................................PASSED
compare Fa........................................................PASSED
compare Fb........................................................PASSED
compare H.........................................................PASSED
compare S.........................................................PASSED
compare X.........................................................PASSED
compare aotoso....................................................PASSED
compare epsilon_a.................................................PASSED
compare epsilon_b.................................................PASSED
compare nalpha....................................................PASSED
compare nbeta.....................................................PASSED
compare nfrzc.....................................................PASSED
compare nirrep....................................................PASSED
compare nmo.......................................................PASSED
compare nso.......................................................PASSED
compare name......................................................PASSED
compare energy....................................................PASSED
compare frozen core energy........................................PASSED
compare dipole field strength x...................................PASSED
compare dipole field strength y...................................PASSED
compare dipole field strength z...................................PASSED
compare basis set name............................................PASSED
compare number of basis functions in set..........................PASSED
compare total number of primitives in basis set...................PASSED
compare molecule name.............................................PASSED
compare molecule point group......................................PASSED
compare molecule geometry.........................................PASSED
Serialization Check 1.............................................PASSED
Segmentation fault: 11
This error does however not appear if I just use the old_wfn
object and do:
old_wfn.to_file("wfn")
old_wfn.from_file("wfn")
followed by the active space calculation on old_wfn
.
I found this in Github : https://github.com/psi4/psi4/issues/1851 and I guess this is my problem but I would like to be absolutely sure, and also ask if there is a way to bypass it for now or not ?
Thank you very much for your advices !