Ignore:
Timestamp:
Oct 8, 2016, 7:25:46 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Add_FitFragmentPartialChargesAction, Fix_ChargeSampling_PBC, Fix_FitPartialCharges
Children:
f5d635
Parents:
e08108
git-author:
Frederik Heber <heber@…> (06/12/16 14:28:29)
git-committer:
Frederik Heber <heber@…> (10/08/16 19:25:46)
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

    re08108 rbd8b57  
    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.