Ignore:
Timestamp:
Aug 20, 2014, 1:04:08 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
d734ff
Parents:
0d5ca7
git-author:
Frederik Heber <heber@…> (06/04/14 11:22:49)
git-committer:
Frederik Heber <heber@…> (08/20/14 13:04:08)
Message:

Fixes to SaturatedFragment::saturateFragment().

  • properly setting up the number of points and the "old" polygon.
  • properly filling in the hydrogen atoms at the calculated places.
  • We have the number of remaining bonds plus the rest. The rest is the valence minus the number of remaining bonds each weighted with its degree. This gives the right number of places to put hydrogens and fill up the valence.
  • TESTS: Removed XFAIL from FragmentMolecule cycles regression test.
File:
1 edited

Legend:

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

    r0d5ca7 re139180  
    117117   * \param _distance scale factor to the distance (default 1.)
    118118   * \param _father bond partner of \a _OwnerAtom that is replaced
     119   * \return pointer to saturation hydrogen atom
    119120   */
    120   void setHydrogenReplacement(
     121  const atom& setHydrogenReplacement(
    121122      const atom * const _OwnerAtom,
    122123      const Vector &_position,
Note: See TracChangeset for help on using the changeset viewer.