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

@ -836,11 +836,11 @@ void *lammps_last_thermo(void *handle, const char *what, int index)
} else if (strcmp(what, "data") == 0) {
if ((index < 0) || (index >= nfield)) return nullptr;
const auto &field = th->get_fields()[index];
if (field.type == multitype::INT) {
if (field.type == multitype::LAMMPS_INT) {
val = (void *) &field.data.i;
} else if (field.type == multitype::BIGINT) {
} else if (field.type == multitype::LAMMPS_INT64) {
val = (void *) &field.data.b;
} else if (field.type == multitype::DOUBLE) {
} else if (field.type == multitype::LAMMPS_DOUBLE) {
val = (void *) &field.data.d;
}