Dear Prof. Julian,
I was trying to install KIM with GULP. The GULP documentation under “kim_model” says
“Note that the code must have been compiled with the -DKIM option in DEFS.”
I tried to change the “getmachine” and “mkgulp” files by pasting the appropriate directory of my “lib” and “mod” files.
In “getmachine” file I do the changes here:
# If OpenKIM is needed then set -DKIM or -DKIM_F03 and KFLAGS
# Current version of OpenKIM
-
echo 'DEFS=-DFLUSH -DKIM_F03' >> makefile*
# echo “KFLAGS=-I/usr/local/lib/kim-api-v1/include/” >> makefile
# echo “KLIBS=-lkim-api-v1 -lstdc++” >> makefile
-
echo "KFLAGS=-I/home/abhikeern/Desktop/aditya_KIM/Kuar/lammps-Jul2021/lib/kim/installed-2.2.1/include/" >> makefile*
-
echo "KLIBS=-lkim-api -lstdc++" >> makefile*
# Older versions of OpenKIM
# echo ‘DEFS=-DFLUSH -DKIM’ >> makefile
# echo “KFLAGS=-I’${KIM_DIR}/KIM_API’” >> makefile
# echo “KLIBS=-lkim -lstdc++” >> makefile
# If no OpenKIM
-
echo "KFLAGS=" >> makefile*
-
echo 'KLIBS=' >> makefile*
And in “mkgulp” I tried do to change in the following place:
# For current version of OpenKIM use the following
#
#–USER–Start
- echo ‘KDEFS=-DKIM’ >> makefile*
# echo “KFLAGS=-I/usr/local/lib/kim-api/mod/” >> makefile
# echo "KLIBS=-L/usr/local/lib/ -lkim-api " >> makefile - echo “KFLAGS=-I/home/abhikeern/Desktop/aditya_KIM/Kuar/lammps-2Jul2021/lib/kim/installed-2.2.1/lib/kim-api/mod/” >> makefile*
- echo "KLIBS=-L/home/abhikeern/Desktop/aditya_KIM/Kuar/lammps-2Jul2021/lib/kim/installed-2.2.1/lib/ -lkim-api " >> makefile*
#–USER–End
Then I compiled GULP with “./mkgulp -k”. It compiled without any error.
But as soon as I try to use a KIM model after installing the model as in the given example (https://openkim.org/doc/usage/using-models/#GULP)
grad conv
cell
5.26 5.26 5.26 90 90 90
frac
Ar 0.0 0.0 0.0
Ar 0.0 0.5 0.5
Ar 0.5 0.0 0.5
Ar 0.5 0.5 0.0
kim_model
ex_model_Ar_P_LJ
dump every kim1.res
The output I get is
“!! ERROR : error in KIM get neighbor list call” at the last.
Could you please help me as to where I am making a mistake?
Thanks and regards.
Abhikeern