Developing LAMMPS
We follow these steps to start building LAMMPS:
- In the folder where the LAMMPS source code has been downloaded and unzipped (which we will call
LAMMPS_DIR
), create a new folder and rename itbuild
. - Now run
CMake(cmake-gui)
, enterLAMMPS_DIR/cmake
in the box titled Where is the source code, enterLAMMPS_DIR/build
in the box underneath titled Where to build the binaries, and click Configure. - When configuring the project for the first time, a new window will appear asking for the generator to use for this project, where the CodeBlocks – MinGW Makefiles option can be selected. Click Finish, as shown in the following screenshot:
In the preceding screenshot, the folder that contains the source code (that is,
LAMMPS_DIR
) for this particular example is theI:/lammps
folder entered in the two boxes at the top. - Now select the desired LAMMPS packages to include in the LAMMPS...