Dear Molpro experts,
I figured out that the functional names from LibXC must be prefixed with “XC_”. Otherwise I get errors like this:
Unknown parameter HYB_GGA_XC_CAM_B3LYP for set HFOPT:LOCAL:DFUNC:KSOPT:CFIT
But I just encountered this error:
ERROR IN GETS: STRING XC_HYB_GGA_XC_CAM_B3LYP LONGER THAN 20 BYTES
and again:
ERROR IN GETS: STRING XC_HYB_GGA_XC_WB97X_V LONGER THAN 8 BYTES
Is my syntax wrong? This testing is on Microsoft Windows (Molpro 2021.2). But I reproduced the error on a machine running Ubuntu 18.04 LTS (installed as binaries). The input file is below. With a short name, like ‘B3LYP’, there is no problem. If I use the long name directly, instead of the variable FN, there is no problem. But I would like to loop over different functionals.
Thanks for any tips,
Karl
***,HOCl test long DFT name
memory,1,G;
angstrom;
geometry={
O
H 1 oh
Cl 1 ocl 2 a
}
oh=1.
ocl=1.7
a=103.
basis=def2-tzvp
FN='XC_HYB_GGA_XC_CAM_B3LYP'
df-ks,$FN
optg
-------------------------------------------------------------------
Dr. Karl K. Irikura
National Institute of Standards and Technology
100 Bureau Drive, mail stop 8320
Gaithersburg, MD 20899-8320 USA
voice: 301-975-2510 fax: 301-975-3670
email: karl.i...@nist.gov
http://www.nist.gov/mml/csd/informatics_research/index.cfm
-------------------------------------------------------------------