Ignore:
Timestamp:
Dec 10, 2012, 10:10:57 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:
184615
Parents:
447481
git-author:
Frederik Heber <heber@…> (08/31/12 16:24:43)
git-committer:
Frederik Heber <heber@…> (12/10/12 10:10:57)
Message:

Removed OrthogonalSummation stuff from printReceivedMPQCResults() again.

  • this should bring printReceivedMPQCResults() down to what it was when we started this branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/FragmentationAutomationAction.cpp

    r447481 rc699f4  
    308308    const std::map<JobId_t, MPQCData> &fragmentData,
    309309    const std::string &KeySetFilename,
    310     size_t NoAtoms,
    311     SamplingGrid &full_sample)
     310    size_t NoAtoms)
    312311{
    313312  // create a vector of all job ids
     
    323322      createMatrixNrLookup(jobids, FragmentCounter);
    324323
     324
    325325  // place results into maps
    326326  EnergyMatrix Energy;
     
    348348    filename << FRAGMENTPREFIX << FORCESFILE;
    349349    if (!ForceKeySet.ParseKeySets(KeySetFilename, filename.str(), FragmentCounter)) return false;
    350   }
    351 
    352   /// prepare for OrthogonalSummation
    353 
    354   // convert KeySetContainer to IndexSetContainer
    355   IndexSetContainer::ptr container(new IndexSetContainer(KeySet));
    356   // create the map of all keysets
    357   SubsetMap::ptr subsetmap(new SubsetMap(*container));
    358 
    359   /// convert all MPQCData to MPQCDataMap_t
    360   {
    361     ASSERT( ForceKeySet.KeySets.size() == fragmentData.size(),
    362         "FragmentationAutomationAction::performCall() - ForceKeySet's KeySets and fragmentData differ in size.");
    363 
    364     typedef boost::mpl::remove<MPQCDataEnergyVector_t, MPQCDataFused::energy_eigenvalues>::type MPQCDataEnergyVector_noeigenvalues_t;
    365     std::vector<MPQCDataEnergyMap_t> Result_Energy_fused(
    366         OrthogonalSumUpPerLevel<MPQCDataEnergyMap_t, MPQCDataEnergyVector_t>(
    367             fragmentData, MatrixNrLookup, container, subsetmap));
    368     std::vector<MPQCDataGridMap_t> Result_Grid_fused(
    369       OrthogonalSumUpPerLevel<MPQCDataGridMap_t, MPQCDataGridVector_t>(
    370           fragmentData, MatrixNrLookup, container, subsetmap));
    371     std::vector<MPQCDataTimeMap_t> Result_Time_fused(
    372       SumUpPerLevel<MPQCDataTimeMap_t, MPQCDataTimeVector_t>(
    373           fragmentData, MatrixNrLookup, container, subsetmap));
    374 
    375     // force has extra converter
    376     std::map<JobId_t, MPQCDataForceMap_t> MPQCData_Force_fused;
    377     convertMPQCDatatoForceMap(fragmentData, ForceKeySet, MPQCData_Force_fused);
    378     std::vector<MPQCDataForceMap_t> Result_Force_fused(subsetmap->getMaximumSubsetLevel());
    379     AllLevelOrthogonalSummator<MPQCDataForceMap_t> forceSummer(
    380                 subsetmap,
    381                 MPQCData_Force_fused,
    382                 container->getContainer(),
    383                 MatrixNrLookup,
    384                 Result_Force_fused);
    385     boost::mpl::for_each<MPQCDataForceVector_t>(boost::ref(forceSummer));
    386 
    387     // obtain full grid
    388     full_sample = boost::fusion::at_key<MPQCDataFused::sampled_grid>(Result_Grid_fused.back());
    389 
    390     // print tables (without eigenvalues, they go extra)
    391     const size_t MaxLevel = subsetmap->getMaximumSubsetLevel();
    392     const std::string energyresult =
    393         writeTable<MPQCDataEnergyMap_t, MPQCDataEnergyVector_noeigenvalues_t >()(
    394             Result_Energy_fused, MaxLevel);
    395     LOG(0, "Energy table is \n" << energyresult);
    396     const std::string eigenvalueresult;
    397 
    398     LOG(0, "Eigenvalue table is \n" << eigenvalueresult);
    399     const std::string forceresult =
    400         writeTable<MPQCDataForceMap_t, MPQCDataForceVector_t>()(
    401             Result_Force_fused, MaxLevel);
    402     LOG(0, "Force table is \n" << forceresult);
    403     // we don't want to print grid to a table
    404     // print times (without flops for now)
    405     typedef boost::mpl::remove<
    406         boost::mpl::remove<MPQCDataTimeVector_t, MPQCDataFused::times_total_flops>::type,
    407         MPQCDataFused::times_gather_flops>::type
    408         MPQCDataTimeVector_noflops_t;
    409     const std::string timesresult =
    410         writeTable<MPQCDataTimeMap_t, MPQCDataTimeVector_noflops_t >()(
    411             Result_Time_fused, MaxLevel);
    412     LOG(0, "Times table is \n" << timesresult);
    413350  }
    414351
     
    503440  /// convert all MPQCData to MPQCDataMap_t
    504441  {
     442    ASSERT( ForceKeySet.KeySets.size() == fragmentData.size(),
     443        "printReceivedFullResults() - ForceKeySet's KeySets and fragmentData differ in size.");
     444
    505445    typedef boost::mpl::remove<MPQCDataEnergyVector_t, MPQCDataFused::energy_eigenvalues>::type MPQCDataEnergyVector_noeigenvalues_t;
    506446    std::vector<MPQCDataEnergyMap_t> Result_Energy_fused(
     
    734674        fragmentData,
    735675        params.path.get(),
    736         getNoAtomsFromAdjacencyFile(params.path.get()),
    737         full_sample);
     676        getNoAtomsFromAdjacencyFile(params.path.get()));
    738677  }
    739678#endif
Note: See TracChangeset for help on using the changeset viewer.