Thanks Ryan! That solved the issue. Next (probably the final step) is calling “toy_parametrized_model” from lammps input with
pair_style kim KIMvirial toy_parameterized_model
but it gives the following error:
LAMMPS (8 Mar 2018)
Lattice spacing in x,y,z = 1.5 1.5 1.5
Created orthogonal box = (0 0 0) to (15 15 15)
1 by 1 by 1 MPI processor grid
Created 4000 atoms
Time spent = 0.000464201 secs
The Model shared library file is not readable for Model name: ‘toy_parameterized_model’.
- Error: at line 1038 in …/pair_kim.cpp
Message: KIM initialization failed
KIM_STATUS_MSG: unsuccessful completion
ERROR: Internal KIM error (…/pair_kim.cpp:1038)
Last command: run 0
I got the same error with “LennardJones612_UniversalShifted__MO_959249795837_003” model, so it does not seem to be an issue with the “toy_parameterized_model”. Maybe an issue with API v2??
LAMMPS (8 Mar 2018)
Lattice spacing in x,y,z = 1.5 1.5 1.5
Created orthogonal box = (0 0 0) to (15 15 15)
1 by 1 by 1 MPI processor grid
Created 4000 atoms
Time spent = 0.000476122 secs
The Model shared library file is not readable for Model name: ‘LennardJones612_UniversalShifted__MO_959249795837_003’.
- Error: at line 1038 in …/pair_kim.cpp
Message: KIM initialization failed
KIM_STATUS_MSG: unsuccessful completion
ERROR: Internal KIM error (…/pair_kim.cpp:1038)
Last command: run 0
Regards,
Alireza