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

Rework-API #50

Closed
wants to merge 17 commits into from
4 changes: 2 additions & 2 deletions examples/lj_forces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ command(lmp, "compute pot_e all pe")
command(lmp, "run 0")

# extract output
forces = gather(lmp, "f")
energies = gather(lmp, "pot_e")
forces = gather(lmp, "f", LAMMPS_DOUBLE_2D)
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, "SNA", Float64)
bs = gather(lmp, "c_SNA", LAMMPS_DOUBLE_2D)
return bs
end

Expand Down
Loading