<br>Hi colleagues:<div>            </div><div>          Recently,I run casscf loop on CoO.Everything is ok when r is less than 4.5 A. However,the convergence problem come when r is larger than 4.5.</div><div>           Then I find a sentence in the manual " difficulties can occur if two electronic states in the same symmetry are almost or exactly degenerate, since then the program can switch from one state to the other. This might happen near avoided crossings or near an asymptote. Problems of this sort can be avoided by optimizing the energy average of the particular states".</div><div>          What mean the particular states,how can I figure them out?can you show me an example command  of "optimizing the energy average of the particular states "</div><div>          additional sentence "In such cases the LQUANT option can be used to specify which states are desired.</div><div>          LQUANT,lam(1),lam(2),,,,,lam(nstate);</div><div>         About this sentence I want to know that if  the actual lam(i) is not what I set,wil the mistake occur?Does the sentence automatically calculate the   LQUANT I set after actual lam(i).Or I have to exactly know what the lam(i) correspond to , and this sentence is just a approval sentence?  </div><div>  </div><div>         My input is listed as follows:</div><div><div>***,Coo</div><div>memory,384,m;</div><div>!file,2,Coo-single_point-test.wfu</div><div>gprint,orbital,civector;</div><div><br></div><div>basis</div><div>spdfgh,o,av5z;c;</div><div>include,coo_avtz.basis;</div><div>end</div><div><br></div><div>geometry={angstrom;</div><div>          co;</div><div>          o,co,1.629}</div><div><br></div><div>{rhf;wf,35,4,3;}</div><div><br></div><div>{multi;occ,12,4,4,1;closed,7,2,2,0;</div><div>wf,35,1,5;state,7;</div><div>wf,35,2,5;state,6;</div><div>wf,35,3,5;state,6;</div><div>wf,35,4,5;state,7;</div><div>wf,35,1,3;state,8;</div><div>wf,35,2,3;state,8;</div><div>wf,35,3,3;state,8;</div><div>wf,35,4,3;state,8;</div><div>wf,35,1,1;state,7;</div><div>wf,35,2,1;state,8;</div><div>wf,35,3,1;state,8;</div><div>wf,35,4,1;state,7;</div><div>ORBITAL,3100.2}</div><div><br></div><div>basis</div><div>spdfgh,o,av5z;c;</div><div>include,coo_avtz.basis;</div><div>end</div><div><br></div><div>geometry={angstrom;</div><div>          co;</div><div>          o,co,r(i)}</div><div><br></div><div>distances=[1.63,1.64,1.65,1.66,1.67,1.69,1.72,1.73,1.75,1.77,1.79,1.81,1.83,1.85,1.87,1.9,1.93,1.96,1.99,2.1,2.3,2.5,2.7,2.9,3.2,3.5,3.7,4,4.2,4.5,4.8,5.1,5.4,5.7,6,6.4,6.7,7,7.2,7.6,8,8.5,9]</div><div>i=0</div><div>do ir=1,#distances</div><div>i=i+1</div><div>r(i)=distances(ir)</div><div><br></div><div>basis</div><div>spdfgh,o,av5z;c;</div><div>include,Coo_v5z.basis;</div><div>end</div><div><br></div><div>{multi;occ,12,4,4,1;closed,7,2,2,0;</div><div>wf,35,1,5;state,7;</div><div>!wf,35,2,5;state,6;</div><div>!wf,35,3,5;state,6;</div><div>!wf,35,4,5;state,7;</div><div>!wf,35,1,3;state,8;</div><div>!wf,35,2,3;state,8;</div><div>!wf,35,3,3;state,8;</div><div>!wf,35,4,3;state,8;</div><div>!wf,35,1,1;state,7;</div><div>!wf,35,2,1;state,8;</div><div>!wf,35,3,1;state,8;</div><div>!wf,35,4,1;state,7;</div><div>START,3100.2+i-1;</div><div>ORBITAL,2600.2+i;</div><div>maxiter,20;</div><div>}</div><div><br></div><div>{multi;occ,12,4,4,1;closed,7,2,2,0;</div><div>wf,35,1,5;state,7;</div><div>wf,35,2,5;state,6;</div><div>wf,35,3,5;state,6;</div><div>wf,35,4,5;state,7;</div><div>wf,35,1,3;state,8;</div><div>wf,35,2,3;state,8;</div><div>wf,35,3,3;state,8;</div><div>wf,35,4,3;state,8;</div><div>wf,35,1,1;state,7;</div><div>wf,35,2,1;state,8;</div><div>wf,35,3,1;state,8;</div><div>wf,35,4,1;state,7;</div><div>maxiter,20;</div><div>START,3100.2+i-1;</div><div>ORBITAL,3100.2+i}</div><div><br></div><div>cas61a1(i)=energy(1);</div><div>cas62a1(i)=energy(2);</div><div>cas63a1(i)=energy(3);</div><div>cas64a1(i)=energy(4);</div><div>cas65a1(i)=energy(5);</div><div>cas66a1(i)=energy(6);</div><div>cas67a1(i)=energy(7);</div><div>cas68a1(i)=energy(8);</div><div>cas62b1(i)=energy(9);</div><div>cas63b1(i)=energy(10);</div><div>cas64b1(i)=energy(11);</div><div>cas65b1(i)=energy(12);</div><div>cas66b1(i)=energy(13);</div><div>cas61b2(i)=energy(14);</div><div>cas62b2(i)=energy(15);</div><div>cas63b2(i)=energy(16);</div><div>cas64b2(i)=energy(17);</div><div>cas65b2(i)=energy(18);</div><div>cas66b2(i)=energy(19);</div><div>cas61a2(i)=energy(20);</div><div>cas62a2(i)=energy(21);</div><div>cas63a2(i)=energy(22);</div><div>cas64a2(i)=energy(23);</div><div>cas65a2(i)=energy(24);</div><div>cas66a2(i)=energy(25);</div><div>cas67a2(i)=energy(26);</div><div>cas41a1(i)=energy(27);</div><div>cas42a1(i)=energy(28);</div><div>cas43a1(i)=energy(29);</div><div>cas44a1(i)=energy(30);</div><div>cas45a1(i)=energy(31);</div><div>cas46a1(i)=energy(32);</div><div>cas47a1(i)=energy(33);</div><div>cas48a1(i)=energy(34);</div><div>cas41b1(i)=energy(35);</div><div>cas42b1(i)=energy(36);</div><div>cas43b1(i)=energy(37);</div><div>cas44b1(i)=energy(38);</div><div>cas45b1(i)=energy(39);</div><div>cas46b1(i)=energy(40);</div><div>cas47b1(i)=energy(41);</div><div>cas48b1(i)=energy(42);</div><div>cas41b2(i)=energy(43);</div><div>cas42b2(i)=energy(44);</div><div>cas43b2(i)=energy(45);</div><div>cas44b2(i)=energy(46);</div><div>cas45b2(i)=energy(47);</div><div>cas46b2(i)=energy(48);</div><div>cas47b2(i)=energy(49);</div><div>cas48b2(i)=energy(50);</div><div>cas41a2(i)=energy(51);</div><div>cas42a2(i)=energy(52);</div><div>cas43a2(i)=energy(53);</div><div>cas44a2(i)=energy(54);</div><div>cas45a2(i)=energy(55);</div><div>cas46a2(i)=energy(56);</div><div>cas47a2(i)=energy(57);</div><div>cas48a2(i)=energy(58);</div><div>cas21a1(i)=energy(59);</div><div>cas22a1(i)=energy(60);</div><div>cas23a1(i)=energy(61);</div><div>cas24a1(i)=energy(62);</div><div>cas25a1(i)=energy(63);</div><div>cas26a1(i)=energy(64);</div><div>cas27a1(i)=energy(65);</div><div>cas21b1(i)=energy(66);</div><div>cas22b1(i)=energy(67);</div><div>cas23b1(i)=energy(68);</div><div>cas24b1(i)=energy(69);</div><div>cas25b1(i)=energy(70);</div><div>cas26b1(i)=energy(71);</div><div>cas27b1(i)=energy(72);</div><div>cas28b1(i)=energy(73);</div><div>cas21b2(i)=energy(74);</div><div>cas22b2(i)=energy(75);</div><div>cas23b2(i)=energy(76);</div><div>cas24b2(i)=energy(77);</div><div>cas25b2(i)=energy(78);</div><div>cas26b2(i)=energy(79);</div><div>cas27b2(i)=energy(80);</div><div>cas28b2(i)=energy(81);</div><div>cas21a2(i)=energy(82);</div><div>cas22a2(i)=energy(83);</div><div>cas23a2(i)=energy(84);</div><div>cas24a2(i)=energy(85);</div><div>cas25a2(i)=energy(86);</div><div>cas26a2(i)=energy(87);</div><div>cas27a2(i)=energy(88);</div><div><br></div><div>table,r(i),cas61a1(i),cas62a1(i),cas63a1(i),cas64a1(i),cas65a1(i),cas66a1(i),cas67a1(i);DIGITS,9;</div><div>save,casscf-6a1.tab</div><div>table,r(i),cas61b1(i),cas62b1(i),cas63b1(i),cas64b1(i),cas65b1(i),cas66b1(i);DIGITS,8;</div><div>save,casscf-6b1.tab</div><div>table,r(i),cas61b2(i),cas62b2(i),cas63b2(i),cas64b2(i),cas65b2(i),cas66b2(i);DIGITS,8;</div><div>save,casscf-6b2.tab</div><div>table,r(i),cas61a2(i),cas62a2(i),cas63a2(i),cas64a2(i),cas65a2(i),cas66a2(i),cas67a2(i);DIGITS,9;</div><div>save,casscf-6a2.tab</div><div>table,r(i),cas41a1(i),cas42a1(i),cas43a1(i),cas44a1(i),cas45a1(i),cas46a1(i),cas47a1(i),cas48a1(i);DIGITS,10;</div><div>save,casscf-4a1.tab</div><div>table,r(i),cas41b1(i),cas42b1(i),cas43b1(i),cas44b1(i),cas45b1(i),cas46b1(i),cas47b1(i),cas48b1(i);DIGITS,10;</div><div>save,casscf-4b1.tab</div><div>table,r(i),cas41b2(i),cas42b2(i),cas43b2(i),cas44b2(i),cas45b2(i),cas46b2(i),cas47b2(i),cas48b2(i);DIGITS,10;</div><div>save,casscf-4b2.tab</div><div>table,r(i),cas41a2(i),cas42a2(i),cas43a2(i),cas44a2(i),cas45a2(i),cas46a2(i),cas47a2(i),cas48a2(i);DIGITS,10;</div><div>save,casscf-4a2.tab</div><div>table,r(i),cas21a1(i),cas22a1(i),cas23a1(i),cas24a1(i),cas25a1(i),cas26a1(i),cas27a1(i);DIGITS,9;</div><div>save,casscf-2a1.tab</div><div>table,r(i),cas21b1(i),cas22b1(i),cas23b1(i),cas24b1(i),cas25b1(i),cas26b1(i),cas27b1(i),cas28b1(i);DIGITS,10;</div><div>save,casscf-2b1.tab</div><div>table,r(i),cas21b2(i),cas22b2(i),cas23b2(i),cas24b2(i),cas25b2(i),cas26b2(i),cas27b2(i),cas28b2(i);DIGITS,10;</div><div>save,casscf-2b2.tab</div><div>table,r(i),cas21a2(i),cas22a2(i),cas23a2(i),cas24a2(i),cas25a2(i),cas26a2(i),cas27a2(i);DIGITS,9;</div><div>save,casscf-2a2.tab</div><div>enddo</div><div><br></div><div>table,r,cas61a1,cas62a1,cas63a1,cas64a1,cas65a1,cas66a1,cas67a1;DIGITS,9;</div><div>table,r,cas61b1,cas62b1,cas63b1,cas64b1,cas65b1,cas66b1;DIGITS,8;</div><div>table,r,cas61b2,cas62b2,cas63b2,cas64b2,cas65b2,cas66b2;DIGITS,8;</div><div>table,r,cas61a2,cas62a2,cas63a2,cas64a2,cas65a2,cas66a2,cas67a2;DIGITS,9;</div><div>table,r,cas41a1,cas42a1,cas43a1,cas44a1,cas45a1,cas46a1,cas47a1,cas48a1;DIGITS,10;</div><div>table,r,cas41b1,cas42b1,cas43b1,cas44b1,cas45b1,cas46b1,cas47b1,cas48b1;DIGITS,10;</div><div>table,r,cas41b2,cas42b2,cas43b2,cas44b2,cas45b2,cas46b2,cas47b2,cas48b2;DIGITS,10;</div><div>table,r,cas41a2,cas42a2,cas43a2,cas44a2,cas45a2,cas46a2,cas47a2,cas48a2;DIGITS,10;</div><div>table,r,cas21a1,cas22a1,cas23a1,cas24a1,cas25a1,cas26a1,cas27a1;DIGITS,9;</div><div>table,r,cas21b1,cas22b1,cas23b1,cas24b1,cas25b1,cas26b1,cas27b1,cas28b1;DIGITS,10;</div><div>table,r,cas21b2,cas22b2,cas23b2,cas24b2,cas25b2,cas26b2,cas27b2,cas28b2;DIGITS,10;</div><div>table,r,cas21a2,cas22a2,cas23a2,cas24a2,cas25a2,cas26a2,cas27a2;DIGITS,9;</div><div>---</div><div><br></div><div>And other suggestions may help to solve the problem will be appreciated.</div><div><br></div><div>best regard</div><div><br></div><div>-kai</div><div> </div><div><br></div><div><br></div></div><br><br><br>