From 38d53877c5aa6a47313012723f54b022ab0cfcd8 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 15 Nov 2024 11:01:19 -0500 Subject: [PATCH] move citeme call(s) to places where labelmaps are used --- src/label_map.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)