I’m using Psi4 1.4rc2 and I am unable to write a cubefile for an MP2 calculation. I get a segmentation fault.
If I use e.g B3LYP the cubefile is written correctly to disk.
The code to reproduce is the following
radical = psi4.geometry("""
symmetry c1
0 2
N 0.000000 0.000000 0.000000
O 1.400000 0.000000 0.000000
O -1.000000 1.000000 0.000000
O -1.000000 -1.000000 0.000000
""")
method = "hf"
psi4.core.set_output_file(f'radical_opt_{method}.log', False)
psi4.set_options({'reference':'uhf','guess':'gwh', 'soscf':True, 'maxiter':500})
E_hf = psi4.optimize('hf/6-31+G*', molecule=radical)
method = "mp2"
psi4.core.clean_options()
psi4.core.set_output_file(f'radical_opt_{method}.log', False)
psi4.set_options({'reference':'uhf','guess':'gwh', 'mp2_type':'conv', 'maxiter':500, 'mom_start':30})
E_mp2, wfn = psi4.optimize(f'{method}/6-31+G*', molecule=radical, return_wfn=True)
psi4.set_options({'cubeprop_tasks':['frontier_orbitals']})
psi4.cubeprop(wfn)
The seg fault is:
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
libgdma.so 00007F8A24E260DC for__signal_handl Unknown Unknown
libpthread-2.28.s 00007F8A30793730 Unknown Unknown Unknown
core.cpython-37m- 00007F8A08B75B3D Unknown Unknown Unknown
core.cpython-37m- 00007F8A08B74207 _ZNK3psi12Wavefun Unknown Unknown
core.cpython-37m- 00007F8A08546999 _ZN3psi14CubeProp Unknown Unknown
core.cpython-37m- 00007F8A0A6E3B01 Unknown Unknown Unknown
core.cpython-37m- 00007F8A0A96836C Unknown Unknown Unknown
core.cpython-37m- 00007F8A0A9684DB Unknown Unknown Unknown
core.cpython-37m- 00007F8A0A56FABA Unknown Unknown Unknow