Dear Lammps users,
I have just installed lammps using the Cmake method. I followed the commands in the instructions step by step. The lmp executable file was created successfully. But when I tried the msst file which is a sample in the example folder where came from the installation progress, it showed:
ERROR: Unrecognized fix style 'msst' is part of the SHOCK package which is not enabled in this LAMMPS binary. (src/modify.cpp:907)
Last command: fix msst all msst z 28.0 q 200 mu 3e2 tscale 0.01
I checked some information and ran the command “make yes- SHOCK” in the lammps/src folder. Then I ran “make package-status” to check if the SHOCH package was installed successfully. It returns:
Installed YES: package SHOCK
But when I run msst again, I still have the same issue.
I would like to know what is wrong here and how to proceed!
Thank you very much for your answer!
Yes, I understand! Using “make yes-SHOCH” is not allowed in cmake mode!
But I was using cmake …/cmake/preset/all_on.cmake to build the lammps, but I still can not use not only SHOCK package, but many other packages !
I read the link you sent to me. I can not understand the command “-D PKG_NAME=value”. How can i use it ? When i type it in the terminal, it returns “-D: command not found”!
If you do not understand such a simple step, then I cannot help you. You are probably best off to ask for assistance from somebody local that has some minimal experience in compiling software (does not have to be LAMMPS).