Skip to content

Commit

Permalink
fix-examples (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joroks authored Jun 25, 2024
1 parent b465b83 commit 41de7d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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", Float64)
energies = extract_compute(lmp, "pot_e", LAMMPS.API.LMP_STYLE_GLOBAL, LAMMPS.API.LMP_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", Float64)
return bs
end

Expand Down

0 comments on commit 41de7d1

Please sign in to comment.