consolidate LAMMPS data type constants and enums and use the same names

This commit is contained in:
Axel Kohlmeyer
2023-06-10 19:23:11 -04:00
parent 0e7d91b611
commit 62b388b48f
11 changed files with 60 additions and 39 deletions

View File

@ -13,7 +13,13 @@
# various symbolic constants to be used
# in certain calls to select data formats
# these must be kept in sync with the enums in src/library.h, src/lmptype.h,
# tools/swig/lammps.i, examples/COUPLE/plugin/liblammpsplugin.h,
# and the constants in fortran/lammps.f90
LAMMPS_AUTODETECT = None
LAMMPS_NONE = -1
LAMMPS_INT = 0
LAMMPS_INT_2D = 1
LAMMPS_DOUBLE = 2
@ -22,8 +28,6 @@ LAMMPS_INT64 = 4
LAMMPS_INT64_2D = 5
LAMMPS_STRING = 6
# these must be kept in sync with the enums in src/library.h, tools/swig/lammps.i,
# examples/COUPLE/plugin/liblammpsplugin.h, and the constants in fortran/lammps.f90
LMP_STYLE_GLOBAL = 0
LMP_STYLE_ATOM = 1
LMP_STYLE_LOCAL = 2