Ignore:
Timestamp:
Dec 21, 2025, 9:50:22 PM (9 days ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
e4b9d5
Parents:
dce5a3
git-author:
Frederik Heber <frederik.heber@…> (11/20/25 19:50:39)
git-committer:
Frederik Heber <frederik.heber@…> (12/21/25 21:50:22)
Message:

FIX: SaturatedFragment saturated despite other option.

  • when no or an empty globalsaturation map was given, then we ignored the saturation option on going through cut bonds.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Exporters/SaturatedFragment.cpp

    rdce5a3 rbc58f2  
    218218
    219219  // go through all cut bonds and replace with a hydrogen
    220   for (CutBonds_t::const_iterator atomiter = CutBonds.begin();
    221       atomiter != CutBonds.end(); ++atomiter) {
    222     atom * const Walker = atomiter->first;
    223     if (!saturateAtom(Walker, atomiter->second))
    224       exit(1);
    225   }
     220  if (saturation == DoSaturate) {
     221    for (CutBonds_t::const_iterator atomiter = CutBonds.begin();
     222        atomiter != CutBonds.end(); ++atomiter) {
     223      atom * const Walker = atomiter->first;
     224      if (!saturateAtom(Walker, atomiter->second))
     225        exit(1);
     226    }
     227  } else
     228    LOG(3, "INFO: We are not saturating cut bonds.");
    226229}
    227230
Note: See TracChangeset for help on using the changeset viewer.