Skip to content

Commit

Permalink
prelim get work function
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Nov 9, 2024
1 parent b990add commit 2c773fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
fail-fast: false
matrix:
version:
- '1.11'
- '1.10'
- '1.9'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion src/Linear/Linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ including higher-order energy effects.
### Arguments
- `beam` -- Input/output beam before/after tracking through
- `ele` -- `Drift` type element
- `ele` -- `Drift` type element
"""
function track!(beam::Beam, ele::Linear.Drift)
L = ele.L
Expand Down
13 changes: 13 additions & 0 deletions src/work.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
get_orbit_work(beam::Beam, n::Integer)
Returns an array of `n` `StructArray{<:Coord}` based on the
passed `Beam` struct which may be used as temporaries.
### Arguments
- `beam` -- Beam to extract types and number of particles from
- `n` -- Number of `StructArray{<:Coord}` temporaries desired
"""
function get_work(beam::Beam, n::Integer)

end

0 comments on commit 2c773fd

Please sign in to comment.