Changeset c1413b


Ignore:
Timestamp:
Aug 20, 2014, 1:06:16 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
c8d2e7
Parents:
ff72fb
git-author:
Frederik Heber <heber@…> (07/17/14 21:53:09)
git-committer:
Frederik Heber <heber@…> (08/20/14 13:06:16)
Message:

SaturatedAtoms are now set at hydrogen database distance.

File:
1 edited

Legend:

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

    rff72fb rc1413b  
    244244    atom * const _father = _atom;
    245245    LOG(4, "DEBUG: Filling saturation hydrogen for atom " << _atom << " at " << *iter);
     246    double BondRescale = _atom->getType()->getHBondDistance(1.);
     247    if (BondRescale == -1) {
     248      ELOG(1, "There is no typical hydrogen bond distance in replacing bond from atom "
     249          << _atom->getName() << " of degree 1!");
     250      BondRescale = 1.;
     251    }
    246252    const atom& hydrogen = setHydrogenReplacement(
    247253        _atom,
    248254        *iter,
    249         1.,
     255        BondRescale,
    250256        _father);
    251257    FullMolecule.insert(hydrogen.getId());
Note: See TracChangeset for help on using the changeset viewer.