| 1 | /*
 | 
|---|
| 2 |  * FragmentationResults.hpp
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  *  Created on: Aug 31, 2012
 | 
|---|
| 5 |  *      Author: heber
 | 
|---|
| 6 |  */
 | 
|---|
| 7 | 
 | 
|---|
| 8 | #ifndef FRAGMENTATIONRESULTS_HPP_
 | 
|---|
| 9 | #define FRAGMENTATIONRESULTS_HPP_
 | 
|---|
| 10 | 
 | 
|---|
| 11 | 
 | 
|---|
| 12 | // include config.h
 | 
|---|
| 13 | #ifdef HAVE_CONFIG_H
 | 
|---|
| 14 | #include <config.h>
 | 
|---|
| 15 | #endif
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #include <map>
 | 
|---|
| 18 | #include <string>
 | 
|---|
| 19 | #include <vector>
 | 
|---|
| 20 | 
 | 
|---|
| 21 | #include "JobMarket/types.hpp"
 | 
|---|
| 22 | 
 | 
|---|
| 23 | #include "Jobs/MPQCData.hpp"
 | 
|---|
| 24 | #include "Jobs/MPQCDataMap.hpp"
 | 
|---|
| 25 | #include "Jobs/VMGData.hpp"
 | 
|---|
| 26 | #include "Jobs/VMGDataMap.hpp"
 | 
|---|
| 27 | #include "Jobs/Grid/SamplingGrid.hpp"
 | 
|---|
| 28 | 
 | 
|---|
| 29 | /** FragmentationResults contains the summed up results per level resulting
 | 
|---|
| 30 |  * from the fragmentation of the molecular system and clever combination of
 | 
|---|
| 31 |  * fragmentary energies, forces, timings, and so on.
 | 
|---|
| 32 |  *
 | 
|---|
| 33 |  * This structure is mostly a storage wherein the summed up results are
 | 
|---|
| 34 |  * contained for subsequent pretty printing and so on.
 | 
|---|
| 35 |  *
 | 
|---|
| 36 |  */
 | 
|---|
| 37 | struct FragmentationResults
 | 
|---|
| 38 | {
 | 
|---|
| 39 |   /** Constructor for class FragmentationResults.
 | 
|---|
| 40 |    *
 | 
|---|
| 41 |    * Performs the summation and fills all result vectors.
 | 
|---|
| 42 |    *
 | 
|---|
| 43 |    * @param fragmentData results from short-range fragment calculations
 | 
|---|
| 44 |    * @param longrangeData results from long-range fragment calculations
 | 
|---|
| 45 |    * @param fullsolutionData results from long-range full calculations
 | 
|---|
| 46 |    * @param KeySetFilename path to fragment files
 | 
|---|
| 47 |    * @param NoAtoms number of atoms of full system
 | 
|---|
| 48 |    * @param full_sample summed up grid charge
 | 
|---|
| 49 |    */
 | 
|---|
| 50 |   FragmentationResults(
 | 
|---|
| 51 |       const std::map<JobId_t,MPQCData> &fragmentData,
 | 
|---|
| 52 |       const std::map<JobId_t,VMGData> &longrangeData,
 | 
|---|
| 53 |       const std::vector<VMGData> &fullsolutionData,
 | 
|---|
| 54 |       const std::string &KeySetFilename,
 | 
|---|
| 55 |       const size_t NoAtoms,
 | 
|---|
| 56 |       const std::vector<SamplingGrid> &full_sample);
 | 
|---|
| 57 | 
 | 
|---|
| 58 |   size_t getMaxLevel() const {
 | 
|---|
| 59 |     return MaxLevel;
 | 
|---|
| 60 |   }
 | 
|---|
| 61 | 
 | 
|---|
| 62 |   //!> results per level of summed up energy
 | 
|---|
| 63 |   std::vector<MPQCDataEnergyMap_t> Result_Energy_fused;
 | 
|---|
| 64 |   //!> results per level of summed up sampled grid charge
 | 
|---|
| 65 |   std::vector<MPQCDataGridMap_t> Result_Grid_fused;
 | 
|---|
| 66 |   //!> results per level of summed up times
 | 
|---|
| 67 |   std::vector<MPQCDataTimeMap_t> Result_Time_fused;
 | 
|---|
| 68 |   //!> results per level of summed up fragment positions and charges
 | 
|---|
| 69 |   std::vector<MPQCDataFragmentMap_t> Result_Fragment_fused;
 | 
|---|
| 70 |   //!> results per level of summed up forces
 | 
|---|
| 71 |   std::vector<MPQCDataForceMap_t> Result_Force_fused;
 | 
|---|
| 72 |   //!> results per level of summed up long range potential grids and energy
 | 
|---|
| 73 |   std::vector<VMGDataMap_t> Result_LongRange_fused;
 | 
|---|
| 74 |   //!> results per level of summed up long range true energy
 | 
|---|
| 75 |   std::vector<VMGDataLongRangeMap_t> Result_LongRangeIntegrated_fused;
 | 
|---|
| 76 | 
 | 
|---|
| 77 | private:
 | 
|---|
| 78 |   //!> maximum level of summation
 | 
|---|
| 79 |   size_t MaxLevel;
 | 
|---|
| 80 | };
 | 
|---|
| 81 | 
 | 
|---|
| 82 | 
 | 
|---|
| 83 | #endif /* FRAGMENTATIONRESULTS_HPP_ */
 | 
|---|