Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 2 KB

README.md

File metadata and controls

26 lines (18 loc) · 2 KB

BeamTracking

Stable Dev Build Status

To develop this package, you will need AcceleratorLattice.jl and AtomicAndPhysicalConstants.jl, which are not yet on the official Julia registry. Therefore in the Julia REPL run:

import Pkg;
Pkg.develop(url="https://github.com/bmad-sim/AcceleratorLattice.jl.git");         # Dependency
Pkg.develop(url="https://github.com/bmad-sim/AtomicAndPhysicalConstants.jl.git"); # Dependency
Pkg.develop(url="https://github.com/bmad-sim/BeamTracking.jl.git"); # This package! Replace bmad-sim with your username if working on a fork

If working on your own fork, replace bmad-sim in the above develop url with your Github username.

In your ~/.julia/dev/ directory, you will now see the directory BeamTracking. This is the Github repo where you can do your work and push changes.

If you would like to add a dependency to the project (e.g. OrdinaryDiffEq.jl), you should:

  1. In the ~/.julia/dev/BeamTracking.jl directory, start julia
  2. Enter package-mode using ], and then type activate .. This activates the Project.toml in the current directory you're in
  3. In package-mode, type add OrdinaryDiffEq. This will add the package as a dependency to the Project.toml.
  4. In the main module src/BeamTracking.jl, add a using OrdinaryDiffEq to the top of BeamTracking.jl, and in your particularly module defined below add a using ..OrdinaryDiffEq which basically says, go one module level up and get OrdinaryDiffEq.