Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 3.37 KB

README.md

File metadata and controls

79 lines (58 loc) · 3.37 KB

Bmad-Ecosystem repository

Bmad toolkit (library) for the simulation of charged particles and X-rays in accelerators and storage rings. This is the primary repository for the various libraries and programs that comprise the Bmad ecosystem. For details, see the Bmad website at https://www.classe.cornell.edu/bmad/.

Manuals

Bmad Installation

Bmad can be installed pre-compiled or from source. Detailed unstructions at https://wiki.classe.cornell.edu/ACC/ACL/OffsiteDoc.

Pre-compiled from conda-forge

The simplest way to install Bmad is from conda-forge. For the regular Bmad (OpenMP enabled), install the latest version using:

conda install -c conda-forge bmad

For the MPI-enabled code, install the latest version using:

conda install -c conda-forge bmad="*=mpi_openmpi*"

This will add all of the appropriate executables to the environment's PATH.

Compile from source

If you want to compile Bmad directly, download a Release (or click on link on right hand side of this page and download the bmad_dist.tar.gz file. ignore the source code files)) and follow the setup instructions at https://wiki.classe.cornell.edu/ACC/ACL/OffsiteDoc.

Developer Setup (for people involved in Bmad development)

Developers should clone this repository, as well as the external packages repository:

git clone https://github.com/bmad-sim/bmad-ecosystem.git
git clone https://github.com/bmad-sim/bmad-external-packages.git

The external packages repository is simply a set of libraries needed by Bmad.

cd bmad-ecosystem
rm ../bmad-external-packages/README.md   # Do not copy this file
cp -r ../bmad-external-packages/* .

If this is the first time, follow the setup instructions at https://wiki.classe.cornell.edu/ACC/ACL/OffsiteDoc. Otherwise if the environment has been setup, to build do:

cd bmad-ecosystem
source util/dist_source_me
util/dist_build_production

Contributing to Bmad: Pull Requests

What is a Pull Request? A Pull Request (PR) is a mechanism for requesting that changes that you have made to a copy of this repository (bmad-sim/bmad-ecosystem) are integrated (merged) into this repository.

The main branch of bmad-ecosystem is the central branch where all changes are merged into.

Pull Requests start with changes you have made to a branch that is not main. The PR is then a request for the changes you have made to be merged with main.

Your copy of the bmad-ecosystem repository can be a fork or simply a clone. Note: The procedure for creating a PR when using a fork is somewhat different than when using a clone.