diff --git a/examples/lj_forces.jl b/examples/lj_forces.jl index 375068b..63c0dd6 100644 --- a/examples/lj_forces.jl +++ b/examples/lj_forces.jl @@ -42,5 +42,5 @@ command(lmp, "compute pot_e all pe") command(lmp, "run 0") # extract output -forces = extract_atom(lmp, "f") -energies = extract_compute(lmp, "pot_e", LAMMPS.API.LMP_STYLE_GLOBAL, LAMMPS.API.LMP_TYPE_SCALAR) +forces = gather(lmp, "f") +energies = gather(lmp, "pot_e")