Ignore:
Timestamp:
Aug 9, 2013, 2:20:36 PM (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:
e355b31
Parents:
ff09f3
git-author:
Frederik Heber <heber@…> (07/04/13 08:49:28)
git-committer:
Frederik Heber <heber@…> (08/09/13 14:20:36)
Message:

HomologyContainer now stores full struct as value to HomologyGraph key.

  • this structure does not only contain fragment and energy but also the sampled charge and potential distribution.
  • added version handling to HomologyContainer::value_t serialization.
  • added option "store-grids" to AnalyseFragmentationResultsAction.
  • TESTFIX: adapted HomologyContainerUnitTest such that new values are correctly constructed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Homology/unittests/HomologyContainerUnitTest.cpp

    rff09f3 rbf1d1b  
    100100  positions[0][0] = 2.;
    101101  Fragment dummy2(positions, charges);
     102  HomologyContainer::value_t value1;
     103  value1.fragment = dummy1;
     104  value1.energy = 1.;
     105  HomologyContainer::value_t value2;
     106  value2.fragment = dummy2;
     107  value2.energy = 1.5;
     108  HomologyContainer::value_t value3;
     109  value3.fragment = dummy;
     110  value3.energy = 2.;
    102111  container +=
    103       std::make_pair( graph, std::make_pair(dummy1, 1.) ),
    104       std::make_pair( graph, std::make_pair(dummy2, 1.5) ),
    105       std::make_pair( othergraph, std::make_pair(dummy, 2.) );
     112      std::make_pair( graph, value1 ),
     113      std::make_pair( graph, value2 ),
     114      std::make_pair( othergraph, value3 );
    106115  // create HomologyContainer
    107116  Keys = new HomologyContainer(container);
     
    126135  Fragment::charges_t charges(1,1.);
    127136  Fragment dummy(positions, charges);
     137  HomologyContainer::value_t value;
     138  value.fragment = dummy;
     139  value.energy = 1.;
    128140  newcontainer +=
    129       std::make_pair( graph, std::make_pair(dummy, 1.) );
     141      std::make_pair( graph, value );
    130142
    131143  Keys->insert(newcontainer);
     
    148160  Fragment::charges_t charges(1,1.);
    149161  Fragment dummy(positions, charges);
     162  HomologyContainer::value_t value;
     163  value.fragment = dummy;
     164  value.energy = 1.;
    150165  newcontainer +=
    151       std::make_pair( graph, std::make_pair(dummy, 1.) );
     166      std::make_pair( graph, value );
    152167
    153168  HomologyContainer other(newcontainer);
Note: See TracChangeset for help on using the changeset viewer.