Limit int types to LAMMPS_INT and LAMMPS_INT64
Keep LAMMPS_TAGINT and LAMMPS_BIGINT internal to LAMMPS. An external caller now only needs to distinguish between 32 and 64bit integers, doubles and C strings.
This commit is contained in:
@ -16,7 +16,7 @@ if len(argv) != 1:
|
||||
print("Syntax: demo.py")
|
||||
sys.exit()
|
||||
|
||||
from lammps import lammps, LAMMPS_INT, LAMMPS_DOUBLE, LAMMPS_DOUBLE2D, LMP_STYLE_GLOBAL, LMP_VAR_EQUAL, LMP_VAR_ATOM
|
||||
from lammps import lammps, LAMMPS_INT, LMP_STYLE_GLOBAL, LMP_VAR_EQUAL, LMP_VAR_ATOM
|
||||
lmp = lammps()
|
||||
|
||||
# test out various library functions after running in.demo
|
||||
|
||||
@ -27,7 +27,7 @@ if len(argv) != 2:
|
||||
|
||||
infile = sys.argv[1]
|
||||
|
||||
from lammps import lammps, LAMMPS_INT, LAMMPS_DOUBLE2D, LMP_STYLE_GLOBAL, LMP_VAR_EQUAL
|
||||
from lammps import lammps, LAMMPS_INT, LMP_STYLE_GLOBAL, LMP_VAR_EQUAL
|
||||
lmp = lammps()
|
||||
|
||||
# run infile one line at a time
|
||||
|
||||
Reference in New Issue
Block a user