Building LAMMPS
When building LAMMPS, an additional folder should be set up to temporarily store configuration files. In LAMMPS, CMake
supports out-of-source compilation, and multiple configurations containing different choices of LAMMPS packages, settings, or compilers can be created in other folders outside the source.
In the folder where the LAMMPS source code has been downloaded and unzipped, enter the following command to access the relevant folder:
cd lammps
Then, a new build
folder can be created to store different configurations:
mkdir build
This folder can then be accessed with the following command:
cd build
Once accessed, the rest of the installation process can be continued inside it.
Including packages in the build
When building LAMMPS, the source code in the src
folder is automatically selected for compilation. The optional packages can be included or excluded as required. The selected packages will influence the compilation time and the size...