Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make extract_atom, extract_global, and gather typestable #65

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.jl.mem

Manifest.toml
LocalPreferences.toml

# generated docs
docs/build/
Expand Down
6 changes: 3 additions & 3 deletions examples/lj_forces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ command(lmp, """

# (x,y,z), natoms
positions = rand(3, 10) .* 5
scatter!(lmp, "x", positions)
scatter!(lmp, :x, positions)

# Compute pot_e
command(lmp, "compute pot_e all pe")

command(lmp, "run 0")

# extract output
forces = gather(lmp, "f", Float64)
energies = extract_compute(lmp, "pot_e", STYLE_GLOBAL, TYPE_SCALAR)
forces = gather(lmp, :f)
energies = extract_compute(lmp, :pot_e, STYLE_GLOBAL, TYPE_SCALAR)
2 changes: 1 addition & 1 deletion examples/snap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function run_snap(lmp, path, rcut, twojmax)
""")

## Extract bispectrum
bs = gather(lmp, "c_SNA", Float64)
bs = gather(lmp, :c_SNA)
return bs
end

Expand Down
Loading
Loading