add some support functions to cast pointers and get values from pointers

This commit is contained in:
Axel Kohlmeyer
2020-10-18 12:40:17 -04:00
parent eab5d68a09
commit 97767d0a3c
5 changed files with 16 additions and 2 deletions

View File

@ -14,7 +14,8 @@ lualammps.lammps_command(lmp, "create_atoms 1 box")
print("LAMMPS version ", ver)
print("Number of created atoms: ", lualammps.lammps_get_natoms(lmp))
lualammps.lammps_close(lmp )
print("Current size of timestep: ", lualammps.doublep_value(lualammps.void_to_double(lualammps.lammps_extract_global(lmp,"dt"))))
lualammps.lammps_close(lmp)
EOF
lua example.lua