Ignore:
Timestamp:
Apr 15, 2013, 10:30:31 AM (12 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Split FragmentationResults into ..ShortRange.. and ..LongRange...

Location:
src/Fragmentation/Automation
Files:
2 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Automation/FragmentationLongRangeResults.cpp

    r503acc1 r0cd8cf  
    2222
    2323/*
    24  * FragmentationResults.cpp
     24 * FragmentationLongRangeResults.cpp
    2525 *
    2626 *  Created on: Aug 31, 2012
     
    3636#include "CodePatterns/MemDebug.hpp"
    3737
    38 #include "FragmentationResults.hpp"
     38#include "FragmentationLongRangeResults.hpp"
    3939
    4040#include <boost/mpl/for_each.hpp>
     
    5858#include "Helpers/defs.hpp"
    5959
    60 FragmentationResults::FragmentationResults(
     60FragmentationLongRangeResults::FragmentationLongRangeResults(
    6161    const std::map<JobId_t,MPQCData> &fragmentData,
    6262    std::map<JobId_t,VMGData> &longrangeData,
     
    8383}
    8484
    85 void FragmentationResults::operator()(
     85void FragmentationLongRangeResults::operator()(
    8686    const std::map<JobId_t,MPQCData> &fragmentData,
    8787    std::map<JobId_t,VMGData> &longrangeData,
     
    9494  {
    9595    ASSERT( ForceKeySet.KeySets.size() == fragmentData.size(),
    96         "FragmentationResults::FragmentationResults() - ForceKeySet's KeySets and fragmentData differ in size.");
     96        "FragmentationLongRangeResults::FragmentationLongRangeResults() - ForceKeySet's KeySets and fragmentData differ in size.");
    9797
    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);
    10298    OrthogonalSumUpPerLevel<MPQCDataGridMap_t, MPQCData, MPQCDataGridVector_t>(
    10399        fragmentData, MPQCMatrixNrLookup, container, subsetmap,
    104100        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);
    108101    OrthogonalSumUpPerLevel<MPQCDataFragmentMap_t, MPQCData, MPQCDataFragmentVector_t>(
    109102        fragmentData, MPQCMatrixNrLookup, container, subsetmap,
     
    120113        longrangeData, VMGMatrixNrLookup, container, subsetmap,
    121114        Result_LongRange_fused, Result_perIndexSet_LongRange);
    122 
    123     // force has extra data converter
    124     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 already
    127     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));
    135115
    136116    Result_LongRangeIntegrated_fused.reserve(MaxLevel);
  • src/Fragmentation/Automation/FragmentationLongRangeResults.hpp

    r503acc1 r0cd8cf  
    11/*
    2  * FragmentationResults.hpp
     2 * FragmentationLongRangeResults.hpp
    33 *
    44 *  Created on: Aug 31, 2012
     
    66 */
    77
    8 #ifndef FRAGMENTATIONRESULTS_HPP_
    9 #define FRAGMENTATIONRESULTS_HPP_
     8#ifndef FRAGMENTATIONLONGRANGERESULTS_HPP_
     9#define FRAGMENTATIONLONGRANGERESULTS_HPP_
    1010
    1111
     
    3131#include "Jobs/Grid/SamplingGrid.hpp"
    3232
    33 /** FragmentationResults contains the summed up results per level resulting
     33/** FragmentationLongRangeResults contains the summed up results per level resulting
    3434 * from the fragmentation of the molecular system and clever combination of
    3535 * fragmentary energies, forces, timings, and so on.
     
    3939 *
    4040 */
    41 struct FragmentationResults
     41struct FragmentationLongRangeResults
    4242{
    43   /** Constructor for class FragmentationResults, based on KeySets.
     43  /** Constructor for class FragmentationLongRangeResults, based on KeySets.
    4444   *
    4545   * @param fragmentData results from short-range fragment calculations
     
    4848   * @param _ForceKeySet KeySets of all atoms except those added by saturation
    4949   */
    50   FragmentationResults(
     50  FragmentationLongRangeResults(
    5151      const std::map<JobId_t,MPQCData> &fragmentData,
    5252      std::map<JobId_t,VMGData> &longrangeData,
     
    9292
    9393public:
    94   //!> results per level of summed up energy
    95   std::vector<MPQCDataEnergyMap_t> Result_Energy_fused;
    9694  //!> results per level of summed up sampled grid charge
    9795  std::vector<MPQCDataGridMap_t> Result_Grid_fused;
    98   //!> results per level of summed up times
    99   std::vector<MPQCDataTimeMap_t> Result_Time_fused;
    10096  //!> results per level of summed up fragment positions and charges
    10197  std::vector<MPQCDataFragmentMap_t> Result_Fragment_fused;
    102   //!> results per level of summed up forces
    103   std::vector<MPQCDataForceMap_t> Result_Force_fused;
    10498  //!> results per level of summed up long range potential grids and energy
    10599  std::vector<VMGDataMap_t> Result_LongRange_fused;
     
    107101  std::vector<VMGDataLongRangeMap_t> Result_LongRangeIntegrated_fused;
    108102
    109   //!> results per IndexSet of summed up energy
    110   std::map<IndexSet::ptr, std::pair<MPQCDataEnergyMap_t,MPQCDataEnergyMap_t> > Result_perIndexSet_Energy;
    111103  //!> results per IndexSet of summed up sampled grid charge
    112104  std::map<IndexSet::ptr, std::pair<MPQCDataGridMap_t,MPQCDataGridMap_t> > Result_perIndexSet_Grid;
    113   //!> results per IndexSet of summed up times
    114   std::map<IndexSet::ptr, std::pair<MPQCDataTimeMap_t,MPQCDataTimeMap_t> > Result_perIndexSet_Time;
    115105  //!> results per IndexSet of summed up fragment positions and charges
    116106  std::map<IndexSet::ptr, std::pair<MPQCDataFragmentMap_t,MPQCDataFragmentMap_t> > Result_perIndexSet_Fragment;
    117   //!> results per IndexSet of summed up forces
    118   std::map<IndexSet::ptr, std::pair<MPQCDataForceMap_t, MPQCDataForceMap_t> > Result_perIndexSet_Force;
    119107  //!> results per IndexSet of summed up long range potential grids and energy
    120108  std::map<IndexSet::ptr, std::pair<VMGDataMap_t, VMGDataMap_t> > Result_perIndexSet_LongRange;
     
    128116
    129117
    130 #endif /* FRAGMENTATIONRESULTS_HPP_ */
     118#endif /* FRAGMENTATIONLONGRANGERESULTS_HPP_ */
  • src/Fragmentation/Automation/Makefile.am

    r503acc1 r0cd8cf  
    55        Fragmentation/Automation/createMatrixNrLookup.cpp \
    66        Fragmentation/Automation/FragmentationChargeDensity.cpp \
    7         Fragmentation/Automation/FragmentationResults.cpp \
     7        Fragmentation/Automation/FragmentationLongRangeResults.cpp \
     8        Fragmentation/Automation/FragmentationShortRangeResults.cpp \
    89        Fragmentation/Automation/FragmentJobQueue.cpp \
    910        Fragmentation/Automation/MPQCFragmentController.cpp \
     
    2122        Fragmentation/Automation/extractJobIds.hpp \
    2223        Fragmentation/Automation/FragmentationChargeDensity.hpp \
    23         Fragmentation/Automation/FragmentationResults.hpp \
     24        Fragmentation/Automation/FragmentationLongRangeResults.hpp \
     25        Fragmentation/Automation/FragmentationShortRangeResults.hpp \
    2426        Fragmentation/Automation/FragmentJobQueue.hpp \
    2527        Fragmentation/Automation/MPQCFragmentController.hpp \
Note: See TracChangeset for help on using the changeset viewer.