Changeset dadc74
- Timestamp:
- Oct 25, 2011, 12:08:03 PM (13 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:
- ba94c5
- Parents:
- f0674a
- git-author:
- Frederik Heber <heber@…> (10/20/11 09:02:58)
- git-committer:
- Frederik Heber <heber@…> (10/25/11 12:08:03)
- Location:
- src
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/BondsPerShortestPath.hpp
rf0674a rdadc74 17 17 #include <vector> 18 18 19 #include "graph.hpp"20 21 19 class atom; 22 20 class bond; 21 class KeySet; 23 22 24 23 class BondsPerShortestPath -
src/Fragmentation/Fragmentation.cpp
rf0674a rdadc74 29 29 #include "Element/periodentafel.hpp" 30 30 #include "Fragmentation/fragmentation_helpers.hpp" 31 #include "Fragmentation/Graph.hpp" 31 32 #include "Fragmentation/KeySet.hpp" 32 33 #include "Fragmentation/PowerSetGenerator.hpp" -
src/Fragmentation/Fragmentation.hpp
rf0674a rdadc74 16 16 #include <string> 17 17 18 #include "graph.hpp"19 18 #include "Graph/DepthFirstSearchAnalysis.hpp" 20 19 20 #include "graph.hpp" 21 21 22 class atom; 23 class Graph; 22 24 class KeySet; 23 25 class molecule; -
src/Fragmentation/Makefile.am
rf0674a rdadc74 8 8 Fragmentation/Fragmentation.cpp \ 9 9 Fragmentation/fragmentation_helpers.cpp \ 10 Fragmentation/Graph.cpp \ 10 11 Fragmentation/helpers.cpp \ 11 12 Fragmentation/HessianMatrix.cpp \ … … 23 24 Fragmentation/Fragmentation.hpp \ 24 25 Fragmentation/fragmentation_helpers.hpp \ 26 Fragmentation/Graph.hpp \ 27 Fragmentation/helpers.cpp \ 25 28 Fragmentation/helpers.hpp \ 26 29 Fragmentation/HessianMatrix.hpp \ -
src/Fragmentation/PowerSetGenerator.hpp
rf0674a rdadc74 18 18 19 19 #include "Fragmentation/BondsPerShortestPath.hpp" 20 #include "graph.hpp"21 20 22 21 class bond; 23 class UniqueFragment ;22 class UniqueFragments; 24 23 25 24 class PowerSetGenerator -
src/Fragmentation/UniqueFragments.cpp
rf0674a rdadc74 27 27 #include "Bond/bond.hpp" 28 28 #include "Element/element.hpp" 29 #include "Fragmentation/Graph.hpp" 29 30 #include "Fragmentation/KeySet.hpp" 30 31 #include "graph.hpp" -
src/Fragmentation/UniqueFragments.hpp
rf0674a rdadc74 17 17 #include <vector> 18 18 19 #include "graph.hpp"20 21 19 class atom; 22 20 class bond; 23 21 class config; 22 class Graph; 23 class KeySet; 24 24 25 25 /** Structure containing all values in power set combination generation. -
src/Fragmentation/fragmentation_helpers.cpp
rf0674a rdadc74 29 29 #include "Bond/bond.hpp" 30 30 #include "Element/element.hpp" 31 #include "Fragmentation/Graph.hpp" 31 32 #include "Fragmentation/KeySet.hpp" 33 #include "graph.hpp" 32 34 #include "Helpers/defs.hpp" 33 35 #include "Helpers/helpers.hpp" … … 457 459 for(int i=0;i<NumLevels;i++) { 458 460 if (FragmentLowerOrdersList[RootNr][i] != NULL) { 459 InsertGraphIntoGraph(*FragmentList,(*FragmentLowerOrdersList[RootNr][i]), &counter);461 (*FragmentList).InsertGraph((*FragmentLowerOrdersList[RootNr][i]), &counter); 460 462 } 461 463 } -
src/Fragmentation/fragmentation_helpers.hpp
rf0674a rdadc74 22 22 23 23 class bond; 24 class Graph; 25 class KeySet; 24 26 class molecule; 25 27 -
src/graph.cpp
rf0674a rdadc74 91 91 //}; 92 92 93 /** Inserts each KeySet in \a graph2 into \a graph1.94 * \param *out output stream for debugging95 * \param graph1 first (dest) graph96 * \param graph2 second (source) graph97 * \param *counter keyset counter that gets increased98 */99 void InsertGraphIntoGraph(Graph &graph1, Graph &graph2, int *counter)100 {101 GraphTestPair testGraphInsert;102 103 for(Graph::iterator runner = graph2.begin(); runner != graph2.end(); runner++) {104 testGraphInsert = graph1.insert(GraphPair ((*runner).first,pair<int,double>((*counter)++,((*runner).second).second))); // store fragment number and current factor105 if (testGraphInsert.second) {106 DoLog(2) && (Log() << Verbose(2) << "KeySet " << (*counter)-1 << " successfully inserted." << endl);107 } else {108 DoLog(2) && (Log() << Verbose(2) << "KeySet " << (*counter)-1 << " failed to insert, present fragment is " << ((*(testGraphInsert.first)).second).first << endl);109 ((*(testGraphInsert.first)).second).second += (*runner).second.second;110 DoLog(2) && (Log() << Verbose(2) << "New factor is " << (*(testGraphInsert.first)).second.second << "." << endl);111 }112 }113 };114 -
src/graph.hpp
rf0674a rdadc74 18 18 #include <deque> 19 19 #include <map> 20 #include <set>21 #include <list>22 20 23 21 /****************************************** forward declarations *****************************/ 24 25 class atom;26 class bond;27 class config;28 class molecule;29 30 class SubGraph;31 class Node;32 class Edge;33 class KeySet;34 class UniqueFragments;35 22 36 23 /********************************************** definitions *********************************/ … … 40 27 41 28 typedef std::deque<int> KeyStack; 42 typedef std::pair<int, double> NumberValuePair;43 44 45 typedef std::map <KeySet, NumberValuePair > Graph;46 typedef std::pair <KeySet, NumberValuePair > GraphPair;47 typedef std::pair<Graph::iterator, bool> GraphTestPair;48 49 50 /******************************** Some small functions and/or structures **********************************/51 52 //bool operator < (KeySet SubgraphA, KeySet SubgraphB); //note: this declaration is important, otherwise normal < is used (producing wrong order)53 void InsertGraphIntoGraph(Graph &graph1, Graph &graph2, int *counter); // Insert all KeySet's in a Graph into another Graph54 55 56 /********************************************** declarations *******************************/57 58 ///** Graph class containing the graphs behind molecules.59 // */60 //class Graph61 //{62 // NodeMap ListOfNodes; //!< tree-list of all nodes in this graph63 // EdgeMap ListOfEdges; //!< tree-multi-list of all nodes, referenced to node id64 //};65 //66 ///** Class describing subgraphs of the Class \a Graph.67 // * SubGraph has its own node and edge lists, however also a pointer to its father graph68 // * and hence access to its list as well.69 // */70 //class SubGraph : class Graph71 //{72 // class Graph *FatherGraph; //!< Graph whose subgraph we are73 //};74 //75 ///** Class containing the nodes of a graph.76 // */77 //class Node78 //{79 // int id; //!< individual id of the node80 // char *Name; //!< Name of the node for pretty printing81 //};82 //83 ///** Class containing egdes in a Graph strructure.84 // */85 //class Edge86 //{87 // class Node *leftnode; //!< pointer to first node88 // class Node *atomnode; //!< pointer to second node89 //};90 91 92 29 93 30 #endif /*GRAPH_HPP_*/ -
src/molecule.hpp
rf0674a rdadc74 43 43 class element; 44 44 class ForceMatrix; 45 class Graph; 45 46 class LinkedCell; 46 47 class molecule; -
src/moleculelist.cpp
rf0674a rdadc74 33 33 #include "config.hpp" 34 34 #include "Element/element.hpp" 35 #include "Fragmentation/Graph.hpp" 35 36 #include "Fragmentation/KeySet.hpp" 36 37 #include "Graph/BondGraph.hpp"
Note:
See TracChangeset
for help on using the changeset viewer.