diff --git a/src/label_map.cpp b/src/label_map.cpp index c4865d5ace..9934868c49 100644 --- a/src/label_map.cpp +++ b/src/label_map.cpp @@ -43,8 +43,6 @@ LabelMap::LabelMap(LAMMPS *_lmp, int _natomtypes, int _nbondtypes, int _nanglety Pointers(_lmp), natomtypes(_natomtypes), nbondtypes(_nbondtypes), nangletypes(_nangletypes), ndihedraltypes(_ndihedraltypes), nimpropertypes(_nimpropertypes) { - if (lmp->citeme) lmp->citeme->add(cite_type_label_framework); - lmap2lmap.atom = lmap2lmap.bond = lmap2lmap.angle = lmap2lmap.dihedral = lmap2lmap.improper = nullptr; reset_type_labels(); @@ -112,6 +110,8 @@ void LabelMap::modify_lmap(int narg, char **arg) if ((narg < 1) || ((narg > 2) && ((narg % 2) == 0))) error->all(FLERR, "Incorrect number of arguments for labelmap command"); + if (lmp->citeme) lmp->citeme->add(cite_type_label_framework); + int ntypes; std::vector *labels; std::unordered_map *labels_map; @@ -238,6 +238,8 @@ int LabelMap::find_or_create(const std::string &mylabel, std::vectorsecond; + if (lmp->citeme) lmp->citeme->add(cite_type_label_framework); + // if no match found, create new label at next available index // label map assumed to be intialized with numeric index // user labels are assumed to be alphanumeric (not a number)