Dear Joachim Werner,
Thank you for your well structured and detailed answer. It is working fine.
As l learn more, I added a "ghost" atom in the mid point of the Rb-N2 interaction vector for adding "bond functions". When I add this "ghost atom" to the input file: the first step of the 'DO' loop ( r = 4.0 Bohr)is running fine. However in the second step, when (r = 9.0 Bohr), I get the following error:
"""
MOLECULE CHANGED: INITIALIZING OCCUPATION AND DUMP RECORDS
nelec= 8 ms2= 1
? Error
? SPIN not possible
? The problem occurs in putocc
GLOBAL ERROR fehler on processor 0
"""
This is confusing as the first stage is working just fine and the error is appearing only at the second stage. Could you take a look at my modified input file and let me know what could be causing this/
"""
rhcl=[8,9,10,11,12,13,14,15,16,18,20] !distances in bohr
r= 8 ! to avoid zero initilization error
bohr !use bohr units globally
geometry={
N, 0.0, 0.0, -1.03875
N, 0.0, 0.0, 1.03875
o, 0, 0, r/2 ! Dummy atom
Rb, 0.0, 0.0, r
}
dummy, o;
basis={
N=aug-cc-pVDZ;
Rb=aug-cc-pwCVDZ-PP;
s,o,0.9,0.3,0.1;
p,o,0.9,0.3,0.1;
d,o,0.6,0.2;
f,o,0.6,0.2;
g,o,0.35;
}
mycalc={
hf
{ccsd(t);core,mixed}
e=energy
$method=ccsd(t)
}
do i=1,#rhcl
r=rhcl(i)
interact,do_cp=1,do_nocp=1,proc=mycalc,spin=[0,1],variable=e,scale=0.8
eccsdt_cp(i)=DECP
eccsdt_nocp(i)=DENOCP
end do
{table,rhcl,eccsdt_nocp,eccsdt_cp
plot,file='n2rb.plot'}
"""
I appreciate your kind help.
I'm attaching the full output: