add typelabel support to neigh_modify exclude type

This commit is contained in:
Axel Kohlmeyer
2024-07-24 10:21:20 -04:00
parent 732786d178
commit 20fb6a4279

View File

@ -1,4 +1,4 @@
// clang-format off // clang-format off
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories https://www.lammps.org/, Sandia National Laboratories
@ -2705,8 +2705,8 @@ void Neighbor::modify_params(int narg, char **arg)
memory->grow(ex1_type,maxex_type,"neigh:ex1_type"); memory->grow(ex1_type,maxex_type,"neigh:ex1_type");
memory->grow(ex2_type,maxex_type,"neigh:ex2_type"); memory->grow(ex2_type,maxex_type,"neigh:ex2_type");
} }
ex1_type[nex_type] = utils::inumeric(FLERR,arg[iarg+2],false,lmp); ex1_type[nex_type] = utils::expand_type_int(FLERR, arg[iarg+2], 0, lmp);
ex2_type[nex_type] = utils::inumeric(FLERR,arg[iarg+3],false,lmp); ex2_type[nex_type] = utils::expand_type_int(FLERR, arg[iarg+3], 0, lmp);
nex_type++; nex_type++;
iarg += 4; iarg += 4;
} else if (strcmp(arg[iarg+1],"group") == 0) { } else if (strcmp(arg[iarg+1],"group") == 0) {