Changeset ea63cb for src/Fragmentation/Summation
- Timestamp:
- Nov 4, 2016, 9:37:51 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- d03800
- Parents:
- 9445081
- git-author:
- Frederik Heber <heber@…> (10/04/16 08:25:40)
- git-committer:
- Frederik Heber <heber@…> (11/04/16 09:37:51)
- Location:
- src/Fragmentation/Summation/Containers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Summation/Containers/FragmentationResultContainer.cpp
r9445081 rea63cb 45 45 const KeySetsContainer &_keysets, 46 46 const KeySetsContainer &_forcekeysets, 47 const edges_per_fragment_t &_edges_per_fragment, 47 48 const shortrangedata_t &_shortrangedata, 48 49 const longrangedata_t &_longrangedata … … 55 56 "FragmentationResultContainer::addFullResults() - keysets (" 56 57 +toString(_keysets.KeySets.size())+") and forcekeysets ("+toString(_forcekeysets.KeySets.size()) 58 +") differ in size."); 59 ASSERT( _keysets.KeySets.size() == _edges_per_fragment.size(), 60 "FragmentationResultContainer::addFullResults() - keysets (" 61 +toString(_keysets.KeySets.size())+") and _edges_per_fragment ("+toString(_edges_per_fragment.size()) 57 62 +") differ in size."); 58 63 ASSERT( _keysets.KeySets.size() == _shortrangedata.size(), … … 67 72 keysets.insert(_keysets); 68 73 forcekeysets.insert(_forcekeysets); 74 edges_per_fragment.insert(edges_per_fragment.end(), _edges_per_fragment.begin(), _edges_per_fragment.end()); 69 75 shortrangedata.insert(_shortrangedata.begin(), _shortrangedata.end()); 70 76 longrangedata.insert(_longrangedata.begin(), _longrangedata.end()); … … 75 81 const KeySetsContainer &_keysets, 76 82 const KeySetsContainer &_forcekeysets, 83 const edges_per_fragment_t &_edges_per_fragment, 77 84 const shortrangedata_t &_shortrangedata 78 85 ) … … 85 92 +toString(_keysets.KeySets.size())+") and forcekeysets ("+toString(_forcekeysets.KeySets.size()) 86 93 +") differ in size."); 94 ASSERT( _keysets.KeySets.size() == _edges_per_fragment.size(), 95 "FragmentationResultContainer::addFullResults() - keysets (" 96 +toString(_keysets.KeySets.size())+") and _edges_per_fragment ("+toString(_edges_per_fragment.size()) 97 +") differ in size."); 87 98 ASSERT( _keysets.KeySets.size() == _shortrangedata.size(), 88 99 "FragmentationResultContainer::addFullResults() - keysets (" … … 93 104 keysets.insert(_keysets); 94 105 forcekeysets.insert(_forcekeysets); 106 edges_per_fragment.insert(edges_per_fragment.end(), _edges_per_fragment.begin(), _edges_per_fragment.end()); 95 107 shortrangedata.insert(_shortrangedata.begin(), _shortrangedata.end()); 96 108 } -
src/Fragmentation/Summation/Containers/FragmentationResultContainer.hpp
r9445081 rea63cb 31 31 #endif 32 32 33 #include "Fragmentation/EdgesPerFragment.hpp" 33 34 #include "Fragmentation/KeySetsContainer.hpp" 34 35 #include "Fragmentation/Summation/IndexSet.hpp" … … 63 64 //!> typedef for short range data container 64 65 typedef std::map<JobId_t, MPQCData> shortrangedata_t; 66 //!> use FragmentJobQueue's typedef here 67 typedef FragmentationEdges::edges_per_fragment_t edges_per_fragment_t; 65 68 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 66 69 //!> typedef for long range data container … … 75 78 * \param _keysets 76 79 * \param _forcekeysetskeysets 80 * \param _edges_per_fragment 77 81 * \param _shortrangedata 78 82 * \param _longrangedata … … 81 85 const KeySetsContainer &_keysets, 82 86 const KeySetsContainer &_forcekeysets, 87 const edges_per_fragment_t &_edges_per_fragment, 83 88 const shortrangedata_t &_shortrangedata, 84 89 const longrangedata_t &_longrangedata … … 92 97 * \param _keysets 93 98 * \param _forcekeysets 99 * \param _edges_per_fragment 94 100 * \param _shortrangedata 95 101 */ … … 97 103 const KeySetsContainer &_keysets, 98 104 const KeySetsContainer &_forcekeysets, 105 const edges_per_fragment_t &_edges_per_fragment, 99 106 const shortrangedata_t &_shortrangedata 100 107 ); … … 129 136 shortrangedata.clear(); 130 137 summedshortrange.clear(); 138 edges_per_fragment.clear(); 131 139 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 132 140 longrangedata.clear(); … … 139 147 const KeySetsContainer &getForceKeySets() const { return forcekeysets; } 140 148 const shortrangedata_t& getShortRangeResults() const { return shortrangedata; } 141 const FragmentationShortRangeResults::summedshortrange_t& getShortRangeSummedResults() const { return summedshortrange; } 149 const FragmentationShortRangeResults::summedshortrange_t& getShortRangeSummedResults() const 150 { return summedshortrange; } 151 const edges_per_fragment_t& getEdgesPerFragment() const 152 { return edges_per_fragment; } 142 153 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 143 154 const longrangedata_t& getLongRangeResults() const; … … 162 173 //!> container for summed up results per index set 163 174 FragmentationShortRangeResults::summedshortrange_t summedshortrange; 175 //!> container for the edge set per index set (starting at 0) 176 edges_per_fragment_t edges_per_fragment; 164 177 165 178 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) … … 182 195 if (version > 1) 183 196 ar & summedshortrange; 197 if (version > 2) 198 ar & edges_per_fragment; 184 199 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 185 200 ar & longrangedata; … … 197 212 if (version > 1) 198 213 ar & summedshortrange; 214 if (version > 2) 215 ar & edges_per_fragment; 199 216 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 200 217 ar & longrangedata; … … 205 222 206 223 // version for serialized information associated to FragmentationResultContainer 207 BOOST_CLASS_VERSION(FragmentationResultContainer, 2)224 BOOST_CLASS_VERSION(FragmentationResultContainer, 3) 208 225 209 226 #endif /* FRAGMENTATIONRESULTCONTAINER_HPP_ */ -
src/Fragmentation/Summation/Containers/FragmentationShortRangeResults.cpp
r9445081 rea63cb 64 64 const KeySetsContainer& _KeySet, 65 65 const KeySetsContainer& _ForceKeySet, 66 const edges_per_fragment_t &_edges_per_fragment, 66 67 std::vector<bool> &_ValueMask) : 67 68 KeySet(_KeySet), 68 ForceKeySet(_ForceKeySet) 69 ForceKeySet(_ForceKeySet), 70 edges_per_fragment(_edges_per_fragment) 69 71 { 70 72 initLookups(fragmentData,_ValueMask); -
src/Fragmentation/Summation/Containers/FragmentationShortRangeResults.hpp
r9445081 rea63cb 24 24 #endif 25 25 26 #include "Fragmentation/EdgesPerFragment.hpp" 26 27 #include "Fragmentation/KeySetsContainer.hpp" 27 28 #include "Fragmentation/Summation/IndexSet.hpp" … … 42 43 struct FragmentationShortRangeResults 43 44 { 45 typedef FragmentationEdges::edges_per_fragment_t edges_per_fragment_t; 46 44 47 /** Constructor for class FragmentationShortRangeResults, based on KeySets. 45 48 * … … 47 50 * @param _KeySet KeySets of all (non-hydrogen) atoms 48 51 * @param _ForceKeySet KeySets of all atoms except those added by saturation 52 * @param _edges_per_fragment edges of the bond graph over all fragment jobs 49 53 * @param _ValueMask masks whether to use a value (true) or not (false), 50 54 * default is true for all values … … 54 58 const KeySetsContainer& _KeySet, 55 59 const KeySetsContainer& _ForceKeySet, 60 const edges_per_fragment_t &_edges_per_fragment, 56 61 std::vector<bool> &_ValueMask); 57 62 … … 79 84 } 80 85 86 const edges_per_fragment_t& getEdgesPerFragment() const { 87 return edges_per_fragment; 88 } 89 81 90 typedef std::map<IndexSet::ptr, std::pair<MPQCData,MPQCData> > summedshortrange_t; 82 91 const summedshortrange_t getSummedShortRangeResults() const; … … 91 100 KeySetsContainer KeySet; 92 101 KeySetsContainer ForceKeySet; 102 edges_per_fragment_t edges_per_fragment; 93 103 IndexSetContainer::ptr container; 94 104 SubsetMap::ptr subsetmap;
Note:
See TracChangeset
for help on using the changeset viewer.