Dear Molpro experts,
I am still struggling with scripting. Maybe I don’t properly understand spaces, semicolons, etc. The following script fails with the error “ERROR IN POSINP: CODE HF NOT FOUND” after entering the OPTG command. If I precede $method(j) with the HF command (commented out below), then the HF optimization is successful but the MP2 optimization fails with “ERROR IN POSINP: CODE MP2 NOT FOUND.” If I remove the OPTG command, there is no problem.
Thanks for all the help so far! I hope this one is easier.
Best regards,
Karl
***,scripting example: geometry optimization
memory,1,G;
$method=[hf,mp2,mp4,ccsd,ccsd(t)]
angstrom;
geometry={
O
H 1 oh
H 1 oh 2 a
}
oh=1.
a=104.
basis=cc-pvtz
DO J=1,#method
K=K+1
! optimize geometry using method
!hf;
$method(J);
optg;
ROH(K)=OH
ANGL(K)=A
E(K)=energy
ENDDO
TABLE,METHOD,ROH,ANGL,E
-------------------------------------------------------------------
Dr. Karl K. Irikura
National Institute of Standards and Technology
100 Bureau Drive, mail stop 8320
Gaithersburg, MD 20899-8320
voice: 301-975-2510 fax: 301-975-3670
email: karl.i...@nist.gov
http://www.nist.gov/mml/csd/informatics_research/index.cfm
-------------------------------------------------------------------
Dear Joachim,
Thank you for the help, and for the multiple solutions! I am constantly amazed that you take the time to respond to such questions personally.
Best regards,
Karl
> Am 09.07.2021 um 00:28 schrieb 'Irikura, Karl K. Dr. (Fed)' via molpro-user <molpr...@googlegroups.com>:
>
> Dear Molpro experts,
>
> I am still struggling with scripting. Maybe I don’t properly understand spaces, semicolons, etc. The following script fails with the error “ERROR IN POSINP: CODE HF NOT FOUND” after entering the OPTG command. If I precede $method(j)
with the HF command (commented out below), then the HF optimization is successful but the MP2 optimization fails with “ERROR IN POSINP: CODE MP2 NOT FOUND.” If I remove the OPTG command, there is no problem.
>
> Thanks for all the help so far! I hope this one is easier.
>
> Best regards,
> :qKarl
>
> ***,scripting example: geometry optimization
>
> memory,1,G;
>
> $method=[hf,mp2,mp4,ccsd,ccsd(t)]
>
> angstrom;
> geometry={
> O
> H 1 oh
> H 1 oh 2 a
> }
> oh=1.
> a=104.
>
> basis=cc-pvtz
>
> DO J=1,#method
> K=K+1
> ! optimize geometry using method
> !hf;
> $method(J);
> optg;
> ROH(K)=OH
> ANGL(K)=A
> E(K)=energy
> ENDDO
>
> TABLE,METHOD,ROH,ANGL,E
>
> -------------------------------------------------------------------
> Dr. Karl K. Irikura
> National Institute of Standards and Technology
> 100 Bureau Drive, mail stop 8320
> Gaithersburg, MD 20899-8320
> voice: 301-975-2510 fax: 301-975-3670
> email: karl.i...@nist.gov
> http://www.nist.gov/mml/csd/informatics_research/index.cfm
> -------------------------------------------------------------------
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "molpro-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
molpro-user...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/molpro-user/SA1PR09MB8688BDD40A77791407629E7EEF199%40SA1PR09MB8688.namprd09.prod.outlook.com.