I encountered the title error with below code
mol_input = str(charge) + " " + str(spinmulti)
for atom in mol.GetAtoms():
mol_input += "\n" + atom.GetSymbol() \
+ " " + str(conf.GetAtomPosition(atom.GetIdx()).x)\
+ " " + str(conf.GetAtomPosition(atom.GetIdx()).y)\
+ " " + str(conf.GetAtomPosition(atom.Get Idx()).z)
try:
geo = psi4.geometry(mol_input)
#psi4.optimize(level, molecule=geo)
energy, wf_o = psi4.optimize(level, molecule=geo, return_wfn=True)
# single poinr energy calc.
energy, wf_e = psi4.energy(level, molecule=geo, return_wfn=True)
print("\t>>>>> frequency calculation will start, here")
energy, wf_f = psi4.frequency(level, molecule=geo, return_wfn=True)
the output is below
mol_input = 0 1
I 1.9256644496641202 -0.032917443081063716 0.006780758800296458
C -0.18614923907723008 0.003182045137621483 -0.0006554942795642219
H -0.5910009858970279 -0.4559850791342856 0.9063130861999501
H -0.5622325375580698 1.0294328546154472 -0.0526369195110689
H -0.586281687131795 -0.5437123775377177 -0.8598014312096133
>>>>> frequency calculation will start, here
RuntimeError: Engine::lmax_exceeded -- angular momentum limit exceeded
a .sdf file I used is below
I actually found this answer
The above one is bit old answer, I expect other counter-measures might exist…
The only way is to recompile psi4?
I found the option in CMakeList
psi4/psi4-1.7/CMakeLists.txt.
option_with_default(MAX_AM_ERI "Maximum angular momentum for integrals. The definition changed with Libint2 but still single integer. Default fine for production." 5)
I actully tried to perform re-installation. But, error happens
$ cmake -S. -Bbuild.new -DMAX_AM_ERI=7 -DLibint2_DIR=/home/xxxx/xxxx/software/psi4/psi4-1.7/build.new/stage/lib/cmake/libint2
...
...
-- Could NOT find Libint2 (missing: Libint2_DIR)
-- Suitable Libint2 could not be located, Building Libint2 7-7-4-7-7-5 instead.
CMake Warning (dev) at /usr/share/cmake-3.24/Modules/ExternalProject.cmake:3071 (message):
$ sudo make -j6 install
[sudo] password for tomohisa:
[ 2%] Installing Psi4-detected BLAS/LAPACK
-- Install configuration: "Release"
[ 60%] Built target libxc_external
[ 60%] Built target libint2_external
[ 60%] Built target pybind11_external
[ 60%] Built target lapack_external
[ 80%] Built target gau2grid_external
[ 82%] Performing configure step for 'psi4-core'
loading initial cache file /home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/build.new/psi4-core-prefix/tmp/psi4-core-cache-Release.cmake
-- Detecting MathOpenMP -- ?OpenMP=ON, ?MKL=, LANG=CXX, C/CXX/Fortran=GNU/GNU/
-- Using LAPACK: /usr/lib/x86_64-linux-gnu/libopenblas.so;...
-- Disabled HDF5
-- Found pybind11: /home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/build.new/stage/include (found version "2.10.1")
-- Using pybind11: /home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/build.new/stage/include (version 2.10.1 for Py3.9.10 and 17)
-- Using Python 3.9: /home/tomohisa/mywin/mywork/minfo/burnish/venv_py39_mol-predict/bin/python3.9
CMake Warning (dev) at /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (libdl) does
not match the name of the calling package (DL). This can lead to problems
in calling code that expects `find_package` result variables (e.g.,
`_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/cmake/FindLibX.cmake:46 (find_package_handle_standard_args)
/home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/cmake/FindDL.cmake:8 (find_lib_x)
CMakeLists.txt:74 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Disabled ambit
-- Disabled CheMPS2
-- Disabled dkh
-- Disabled ecpint
-- Disabled libefp
-- Disabled erd
-- Using gau2grid: /home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/build.new/stage/lib/libgg.a (version 2.0.7)
-- Disabled gdma
-- Libint2Config components requested: CXX_ho;eri_c2_d0_l4;eri_c2_d1_l3;eri_c2_d2_l3;eri_c3_d0_l4;eri_c3_d1_l3;eri_c3_d2_l3;eri_c4_d0_l7;eri_c4_d1_l2;eri_c4_d2_l2;gss;impure_sh;onebody_d0_l4;onebody_d1_l3;onebody_d2_l3
-- Libint2Config components found: CXX_ho;C;eri_c2_d0_l2;eri_c2_d0_l3;eri_c2_d0_l4;eri_c2_d0_l5;eri_c2_d0_l6;eri_c2_d1_l2;eri_c2_d1_l3;eri_c2_d1_l4;eri_c2_d1_l5;eri_c2_d2_l2;eri_c2_d2_l3;eri_c2_d2_l4;eri_c3_d0_l2;eri_c3_d0_l3;eri_c3_d0_l4;eri_c3_d0_l5;eri_c3_d0_l6;eri_c3_d1_l2;eri_c3_d1_l3;eri_c3_d1_l4;eri_c3_d1_l5;eri_c3_d2_l2;eri_c3_d2_l3;eri_c3_d2_l4;eri_c4_d0_l2;eri_c4_d0_l3;eri_c4_d0_l4;eri_c4_d0_l5;eri_c4_d1_l2;eri_c4_d1_l3;eri_c4_d1_l4;eri_c4_d2_l2;eri_c4_d2_l3;g12_d0_l2;g12_d0_l3;g12_d0_l4;g12_d1_l2;g12_d1_l3;g12_d1_l4;gss;impure_sh;onebody_d0_l2;onebody_d0_l3;onebody_d0_l4;onebody_d0_l5;onebody_d0_l6;onebody_d1_l2;onebody_d1_l3;onebody_d1_l4;onebody_d1_l5;onebody_d2_l2;onebody_d2_l3;onebody_d2_l4;shared
CMake Error at CMakeLists.txt:167 (find_package):
Found package configuration file:
/home/tomohisa/mywin/mywork/minfo/software/psi4/psi4-1.7/build.new/stage/lib/cmake/libint2/libint2-config.cmake
but it set Libint2_FOUND to FALSE so package "Libint2" is considered to be
NOT FOUND.
-- Configuring incomplete, errors occurred!
I need help…