Changeset 0cd8cf for src/Fragmentation/Automation
- Timestamp:
- Apr 15, 2013, 10:30:31 AM (12 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, 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_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 7b0494
- Parents:
- 503acc1
- git-author:
- Frederik Heber <heber@…> (03/07/13 20:53:50)
- git-committer:
- Frederik Heber <heber@…> (04/15/13 10:30:31)
- Location:
- src/Fragmentation/Automation
- Files:
-
- 2 added
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Automation/FragmentationLongRangeResults.cpp
r503acc1 r0cd8cf 22 22 23 23 /* 24 * Fragmentation Results.cpp24 * FragmentationLongRangeResults.cpp 25 25 * 26 26 * Created on: Aug 31, 2012 … … 36 36 #include "CodePatterns/MemDebug.hpp" 37 37 38 #include "Fragmentation Results.hpp"38 #include "FragmentationLongRangeResults.hpp" 39 39 40 40 #include <boost/mpl/for_each.hpp> … … 58 58 #include "Helpers/defs.hpp" 59 59 60 Fragmentation Results::FragmentationResults(60 FragmentationLongRangeResults::FragmentationLongRangeResults( 61 61 const std::map<JobId_t,MPQCData> &fragmentData, 62 62 std::map<JobId_t,VMGData> &longrangeData, … … 83 83 } 84 84 85 void Fragmentation Results::operator()(85 void FragmentationLongRangeResults::operator()( 86 86 const std::map<JobId_t,MPQCData> &fragmentData, 87 87 std::map<JobId_t,VMGData> &longrangeData, … … 94 94 { 95 95 ASSERT( ForceKeySet.KeySets.size() == fragmentData.size(), 96 "Fragmentation Results::FragmentationResults() - ForceKeySet's KeySets and fragmentData differ in size.");96 "FragmentationLongRangeResults::FragmentationLongRangeResults() - ForceKeySet's KeySets and fragmentData differ in size."); 97 97 98 typedef boost::mpl::remove<MPQCDataEnergyVector_t, MPQCDataFused::energy_eigenvalues>::type MPQCDataEnergyVector_noeigenvalues_t;99 OrthogonalSumUpPerLevel<MPQCDataEnergyMap_t, MPQCData, MPQCDataEnergyVector_t>(100 fragmentData, MPQCMatrixNrLookup, container, subsetmap,101 Result_Energy_fused, Result_perIndexSet_Energy);102 98 OrthogonalSumUpPerLevel<MPQCDataGridMap_t, MPQCData, MPQCDataGridVector_t>( 103 99 fragmentData, MPQCMatrixNrLookup, container, subsetmap, 104 100 Result_Grid_fused, Result_perIndexSet_Grid); 105 SumUpPerLevel<MPQCDataTimeMap_t, MPQCData, MPQCDataTimeVector_t>(106 fragmentData, MPQCMatrixNrLookup, container, subsetmap,107 Result_Time_fused, Result_perIndexSet_Time);108 101 OrthogonalSumUpPerLevel<MPQCDataFragmentMap_t, MPQCData, MPQCDataFragmentVector_t>( 109 102 fragmentData, MPQCMatrixNrLookup, container, subsetmap, … … 120 113 longrangeData, VMGMatrixNrLookup, container, subsetmap, 121 114 Result_LongRange_fused, Result_perIndexSet_LongRange); 122 123 // force has extra data converter124 std::map<JobId_t, MPQCDataForceMap_t> MPQCData_Force_fused;125 convertMPQCDatatoForceMap(fragmentData, ForceKeySet, MPQCData_Force_fused);126 Result_Force_fused.resize(MaxLevel); // we need the results of correct size already127 AllLevelOrthogonalSummator<MPQCDataForceMap_t> forceSummer(128 subsetmap,129 MPQCData_Force_fused,130 container->getContainer(),131 MPQCMatrixNrLookup,132 Result_Force_fused,133 Result_perIndexSet_Force);134 boost::mpl::for_each<MPQCDataForceVector_t>(boost::ref(forceSummer));135 115 136 116 Result_LongRangeIntegrated_fused.reserve(MaxLevel); -
src/Fragmentation/Automation/FragmentationLongRangeResults.hpp
r503acc1 r0cd8cf 1 1 /* 2 * Fragmentation Results.hpp2 * FragmentationLongRangeResults.hpp 3 3 * 4 4 * Created on: Aug 31, 2012 … … 6 6 */ 7 7 8 #ifndef FRAGMENTATION RESULTS_HPP_9 #define FRAGMENTATION RESULTS_HPP_8 #ifndef FRAGMENTATIONLONGRANGERESULTS_HPP_ 9 #define FRAGMENTATIONLONGRANGERESULTS_HPP_ 10 10 11 11 … … 31 31 #include "Jobs/Grid/SamplingGrid.hpp" 32 32 33 /** Fragmentation Results contains the summed up results per level resulting33 /** FragmentationLongRangeResults contains the summed up results per level resulting 34 34 * from the fragmentation of the molecular system and clever combination of 35 35 * fragmentary energies, forces, timings, and so on. … … 39 39 * 40 40 */ 41 struct Fragmentation Results41 struct FragmentationLongRangeResults 42 42 { 43 /** Constructor for class Fragmentation Results, based on KeySets.43 /** Constructor for class FragmentationLongRangeResults, based on KeySets. 44 44 * 45 45 * @param fragmentData results from short-range fragment calculations … … 48 48 * @param _ForceKeySet KeySets of all atoms except those added by saturation 49 49 */ 50 Fragmentation Results(50 FragmentationLongRangeResults( 51 51 const std::map<JobId_t,MPQCData> &fragmentData, 52 52 std::map<JobId_t,VMGData> &longrangeData, … … 92 92 93 93 public: 94 //!> results per level of summed up energy95 std::vector<MPQCDataEnergyMap_t> Result_Energy_fused;96 94 //!> results per level of summed up sampled grid charge 97 95 std::vector<MPQCDataGridMap_t> Result_Grid_fused; 98 //!> results per level of summed up times99 std::vector<MPQCDataTimeMap_t> Result_Time_fused;100 96 //!> results per level of summed up fragment positions and charges 101 97 std::vector<MPQCDataFragmentMap_t> Result_Fragment_fused; 102 //!> results per level of summed up forces103 std::vector<MPQCDataForceMap_t> Result_Force_fused;104 98 //!> results per level of summed up long range potential grids and energy 105 99 std::vector<VMGDataMap_t> Result_LongRange_fused; … … 107 101 std::vector<VMGDataLongRangeMap_t> Result_LongRangeIntegrated_fused; 108 102 109 //!> results per IndexSet of summed up energy110 std::map<IndexSet::ptr, std::pair<MPQCDataEnergyMap_t,MPQCDataEnergyMap_t> > Result_perIndexSet_Energy;111 103 //!> results per IndexSet of summed up sampled grid charge 112 104 std::map<IndexSet::ptr, std::pair<MPQCDataGridMap_t,MPQCDataGridMap_t> > Result_perIndexSet_Grid; 113 //!> results per IndexSet of summed up times114 std::map<IndexSet::ptr, std::pair<MPQCDataTimeMap_t,MPQCDataTimeMap_t> > Result_perIndexSet_Time;115 105 //!> results per IndexSet of summed up fragment positions and charges 116 106 std::map<IndexSet::ptr, std::pair<MPQCDataFragmentMap_t,MPQCDataFragmentMap_t> > Result_perIndexSet_Fragment; 117 //!> results per IndexSet of summed up forces118 std::map<IndexSet::ptr, std::pair<MPQCDataForceMap_t, MPQCDataForceMap_t> > Result_perIndexSet_Force;119 107 //!> results per IndexSet of summed up long range potential grids and energy 120 108 std::map<IndexSet::ptr, std::pair<VMGDataMap_t, VMGDataMap_t> > Result_perIndexSet_LongRange; … … 128 116 129 117 130 #endif /* FRAGMENTATION RESULTS_HPP_ */118 #endif /* FRAGMENTATIONLONGRANGERESULTS_HPP_ */ -
src/Fragmentation/Automation/Makefile.am
r503acc1 r0cd8cf 5 5 Fragmentation/Automation/createMatrixNrLookup.cpp \ 6 6 Fragmentation/Automation/FragmentationChargeDensity.cpp \ 7 Fragmentation/Automation/FragmentationResults.cpp \ 7 Fragmentation/Automation/FragmentationLongRangeResults.cpp \ 8 Fragmentation/Automation/FragmentationShortRangeResults.cpp \ 8 9 Fragmentation/Automation/FragmentJobQueue.cpp \ 9 10 Fragmentation/Automation/MPQCFragmentController.cpp \ … … 21 22 Fragmentation/Automation/extractJobIds.hpp \ 22 23 Fragmentation/Automation/FragmentationChargeDensity.hpp \ 23 Fragmentation/Automation/FragmentationResults.hpp \ 24 Fragmentation/Automation/FragmentationLongRangeResults.hpp \ 25 Fragmentation/Automation/FragmentationShortRangeResults.hpp \ 24 26 Fragmentation/Automation/FragmentJobQueue.hpp \ 25 27 Fragmentation/Automation/MPQCFragmentController.hpp \
Note:
See TracChangeset
for help on using the changeset viewer.