Hi all,
I would like to do a user-defined basis DCFT, my input is like below:
memory 10000 mb
molecule {
0 1
AU 1.256748692802 0.000000000000 0.000000000000
AU -1.256748692802 -0.000000000000 0.000000000000
}
basis QZVPX2C {
spherical
****
--basis--
****
}
df_basis_scf QZVPX2CJK {
spherical
****
--DF basis--
****
}
df_basis_dcft QZVPX2CDCFT {
spherical
****
--DF basis--
****
}
set relativistic x2c
set basis QZVPX2C
set basis_relativistic QZVPX2C
set df_basis_scf QZVPX2CJK
set df_basis_dcft QZVPX2CDCFT
set scf_type df
e, wfn = energy('dcft', return_wfn=True)
Psi4 will get below error:
Traceback (most recent call last):
File "/root/miniconda3/envs/psi4/bin/psi4", line 289, in <module>
exec(content)
File "<string>", line 971
df_basis_dcft QZVPX2CDCFT {
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/miniconda3/envs/psi4/bin/psi4", line 306, in <module>
suspect_lineno = traceback.extract_tb(exc_traceback)[1].lineno - 1 # -1 for 0 indexing
IndexError: list index out of range
If modified the input as below:
basis QZVPX2CDCFT {
spherical
****
--DF basis--
****
}
Then, the SCF level calculation is OK, after that, a DCFT calculation is running, but got below error:
Could not find requested basisset (DF_BASIS_DCFT).
Traceback (most recent call last):
File "/root/miniconda3/envs/psi4/bin/psi4", line 289, in <module>
exec(content)
File "<string>", line 1353, in <module>
File "/root/miniconda3/envs/psi4/lib//python3.7/site-packages/psi4/driver/driver.py", line 561, in energy
wfn = procedures['energy'][lowername](lowername, molecule=molecule, **kwargs)
File "/root/miniconda3/envs/psi4/lib//python3.7/site-packages/psi4/driver/procrouting/proc.py", line 1488, in run_dcft
dcft_wfn = core.dcft(ref_wfn)
RuntimeError:
Fatal Error: Wavefunction::get_basisset: Requested basis set (DF_BASIS_DCFT) was not set!
Error occurred in file: /scratch/psilocaluser/conda-builds/psi4-multiout_1563819946209/work/psi4/src/psi4/libmints/wavefunction.cc on line: 660
The most recent 5 function calls were:
psi::Wavefunction::get_basisset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
Printing out the relevant lines from the Psithon --> Python processed input file:
core.set_global_option("BASIS", "QZVPX2C")
core.set_global_option("BASIS_RELATIVISTIC", "QZVPX2C")
core.set_global_option("DF_BASIS_SCF", "QZVPX2CJK")
core.set_global_option("DF_BASIS_DCFT", "QZVPX2CDCFT")
core.set_global_option("SCF_TYPE", "df")
--> energy('dcft')
Psi4 stopped on: Wednesday, 11 September 2019 02:49PM
Psi4 wall time for execution: 0:02:47.43
I have searched in Psi web manual and this forum and also github site, I am so sorry I can not find any information about this.
Can any one have experience about this, Thank so much.
Qinqing.