GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.lammps.org — 2.6. Download the LAMMPS source with git — LAMMPS documentation 2.6. Download the LAMMPS source with gitLAMMPS development is coordinated through the “LAMMPS GitHub site”. If you clone the LAMMPS repository onto your local machine, it has several advantages:
You must have git installed on your system to use the commands explained below to communicate with the git servers on GitHub. You can follow the LAMMPS development on 4 different git branches:
To access the git repository on your box, use the clone command to create a local copy of the LAMMPS repository with a command like: git clone -b release https://github.com/lammps/lammps.git mylammps where “mylammps” is the name of the directory you wish to create on your machine and “release” is one of the 3 branches listed above. (Note that you actually download all 3 branches; you can switch between them at any time using “git checkout <branch name>”.) Saving time and disk space when using The complete git history of the LAMMPS project is quite large because
it contains the entire commit history of the project since fall 2006,
which includes the time when LAMMPS was managed with subversion.
This includes a few commits that have added and removed some large
files (mostly by accident). If you do not need access to the entire
commit history (most people don’t), you can speed up the “cloning”
process and reduce local disk space requirements by using the
Once the command completes, your directory will contain the same files
as if you unpacked a current LAMMPS tarball, with the exception, that
the HTML documentation files are not included. They can be generated
from the content provided in After initial cloning, as bug fixes and new features are added to LAMMPS you can stay up-to-date by typing the following git commands from within the “mylammps” directory: git checkout release # not needed if you always stay in this branch git checkout stable # use one of these 4 checkout commands git checkout develop # to choose the branch to follow git checkout maintenance git pull Doing a “pull” will not change any files you have added to the LAMMPS directory structure. It will also not change any existing LAMMPS files you have edited, unless those files have changed in the repository. In that case, git will attempt to merge the changes from the repository file with your version of the file and tell you if there are any conflicts. See the git documentation for details. If you want to access a particular previous release version of LAMMPS,
you can instead “check out” any version with a published tag. See the
output of git checkout tagID Stable versions and what tagID to use for a particular stable version
can be looked up on GitHub releases page. Note that this command
will print some warnings, because in order to get back to the latest
revision and to be able to update with The tags for LAMMPS releases are digitally signed. You can check the signature of a tag with a command like the following: git verify-tag stable_30Sep2026 This requires the public key of the LAMMPS developer who has signed the tag. How to import this key and how to check that it is the correct key is explained in the section about checking downloaded files. Once you have updated your local files with a From the top-level LAMMPS folder (with cmake --build build CMake should auto-detect whether it needs to re-run the CMake configuration step and otherwise redo the build for all files that have been changed or files that depend on changed files. In case some build options have been changed or renamed, you may have to update those by running: cmake -S cmake -B build and then rebuild. Switch to the src directory and type: make purge # remove any deprecated src files make package-update # sync package files with src files make foo # re-build for your machine (mpi, serial, etc) to enforce consistency of the source between the src folder
and package directories. This is OK to do even if you don’t
use any packages. The Warning If you wish to edit/change a src file that is from a package, you should edit the version of the file inside the package subdirectory with src, then re-install the package. The version in the source directory is merely a copy and will be wiped out if you type “make package-update”. Git protocols The servers at github.com support the “https” access protocol for
anonymous, read-only access. If you have a suitably configured
GitHub account, you may also use SSH protocol with the URL
The LAMMPS GitHub project is currently overseen by Axel Kohlmeyer (Temple U, akohlmey at gmail.com), contact him if you have any questions or concerns. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |