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,6 +14,7 @@ pllammps::lammps_command(\$lmp, "create_atoms 1 box");
print("LAMMPS version ",\$ver,"\n");
print("Number of created atoms: ", pllammps::lammps_get_natoms(\$lmp), "\n");
print("Current size of timestep: ", pllammps::doublep_value(pllammps::void_to_double(pllammps::lammps_extract_global(\$lmp,"dt"))), "\n");
pllammps::lammps_close(\$lmp)
EOF