Ignore:
Timestamp:
Aug 20, 2014, 1:04:08 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
1ae9aa
Parents:
0710bf
git-author:
Frederik Heber <heber@…> (06/29/14 18:02:32)
git-committer:
Frederik Heber <heber@…> (08/20/14 13:04:08)
Message:

Extended SphericalPointDistribution::Polygon_t to WeightedPolygon_t.

  • contains additionally the weights from the already present points.
  • in order to deal sensibly with present bonds of higher degree (>1) that shift neighboring occupied orbitals even further away, we additionally pass on the bond degree. This indicates how many points of the N points have to be accumulated for this on present bond.
  • TESTS: Regression test FragmentMolecule-cylces failing for the moment.
File:
1 edited

Legend:

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

    r0710bf r260540  
    254254 */
    255255SphericalPointDistribution::IndexList_t SphericalPointDistribution::findBestMatching(
    256     const SphericalPointDistribution::Polygon_t &_polygon,
     256    const SphericalPointDistribution::WeightedPolygon_t &_polygon,
    257257    const SphericalPointDistribution::Polygon_t &_newpolygon
    258258    )
     
    261261  MCS.foundflag = false;
    262262  MCS.bestL2 = std::numeric_limits<double>::max();
    263   MCS.oldpoints.insert(MCS.oldpoints.begin(), _polygon.begin(),_polygon.end() );
     263  for (WeightedPolygon_t::const_iterator iter = _polygon.begin();
     264      iter != _polygon.end(); ++iter)
     265    MCS.oldpoints.push_back(iter->first);
    264266  MCS.newpoints.insert(MCS.newpoints.begin(), _newpolygon.begin(),_newpolygon.end() );
    265267
     
    489491SphericalPointDistribution::Polygon_t
    490492SphericalPointDistribution::matchSphericalPointDistributions(
    491     const SphericalPointDistribution::Polygon_t &_polygon,
     493    const SphericalPointDistribution::WeightedPolygon_t &_polygon,
    492494    const SphericalPointDistribution::Polygon_t &_newpolygon
    493495    )
    494496{
    495497  SphericalPointDistribution::Polygon_t remainingpoints;
    496   VectorArray_t remainingold(_polygon.begin(), _polygon.end());
     498  VectorArray_t remainingold;
     499  for (WeightedPolygon_t::const_iterator iter = _polygon.begin();
     500      iter != _polygon.end(); ++iter)
     501    remainingold.push_back(iter->first);
    497502  VectorArray_t remainingnew(_newpolygon.begin(), _newpolygon.end());
    498503  LOG(2, "INFO: Matching old polygon " << _polygon
Note: See TracChangeset for help on using the changeset viewer.