Ignore:
Timestamp:
Mar 20, 2017, 2:54:42 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
FitPartialCharges_GlobalError, PartialCharges_OrthogonalSummation
Children:
5b3781
Parents:
dbd841
git-author:
Frederik Heber <heber@…> (06/12/16 14:28:29)
git-committer:
Frederik Heber <heber@…> (03/20/17 14:54:42)
Message:

Extracted IndexedValue from IndexedVectors.

  • we may now sum up indexed values of arbitrary type, i.e. an arbitrary class that fulfills a certain interface, and each instance connected to a specific index (within index sets).
  • added detail::force where std::vector<double> is specialized for three components.
  • IndexedVectors is now a specialization of IndexedValue for detail::force.
  • adapated usage signatures in AnalyseFragmentationResultsAction, InterfaceVMGJob, and MPQCCommandJob.
  • slight changes in IndexedVectorsUnitTest because boost::assign is no longer used for detail::force.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Summation/Containers/FragmentationLongRangeResults.cpp

    rdbd841 r346b0c  
    266266      if (hasLongRangeForces()) {
    267267        VMGDataLongRangeForceMap_t forceinstance;
    268         IndexedVectors fullforces( fullindices, fullsolutionData[level-1].forces);
     268        IndexedVectors::values_t fullforcevalues(
     269            fullsolutionData[level-1].forces.begin(), fullsolutionData[level-1].forces.end());
     270        IndexedVectors fullforces( fullindices, fullforcevalues);
    269271        IndexedVectors longrangeforces =
    270272            boost::fusion::at_key<VMGDataFused::forces>(Result_ForceLongRange_fused[level-1]);
Note: See TracChangeset for help on using the changeset viewer.