- Timestamp:
- Dec 14, 2012, 5:39:41 PM (12 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:
- d1ba0d
- Parents:
- 17c03f
- git-author:
- Frederik Heber <heber@…> (09/28/12 08:52:15)
- git-committer:
- Frederik Heber <heber@…> (12/14/12 17:39:41)
- Location:
- src/Fragmentation
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/AdaptivityMap.cpp
r17c03f re71325 100 100 * \param &path path to ENERGYPERFRAGMENT file (may be NULL if Order is non-negative) 101 101 */ 102 void AdaptivityMap::ScanAdaptiveFileIntoMap( std::string &path)102 void AdaptivityMap::ScanAdaptiveFileIntoMap(const std::string &path) 103 103 { 104 104 int No = 0, FragOrder = 0; -
src/Fragmentation/AdaptivityMap.hpp
r17c03f re71325 31 31 32 32 void InsertIntoAdaptiveCriteriaList(int FragOrder, int No, double Value); 33 void ScanAdaptiveFileIntoMap( std::string &path);33 void ScanAdaptiveFileIntoMap(const std::string &path); 34 34 void ReMapAdaptiveCriteriaListToValue(molecule *mol); 35 35 int CountLinesinFile(std::ifstream &InputFile) const; -
src/Fragmentation/Fragmentation.cpp
r17c03f re71325 97 97 * \return 1 - continue, 2 - stop (no fragmentation occured) 98 98 */ 99 int Fragmentation::FragmentMolecule(const std::vector<atomId_t> &atomids, int Order, std::string prefix, DepthFirstSearchAnalysis &DFS) 99 int Fragmentation::FragmentMolecule( 100 const std::vector<atomId_t> &atomids, 101 int Order, 102 const std::string &prefix, 103 DepthFirstSearchAnalysis &DFS) 100 104 { 101 105 std::fstream File; … … 334 338 * \return true - needs further fragmentation, false - does not need fragmentation 335 339 */ 336 bool Fragmentation::CheckOrderAtSite(AtomMask_t &AtomMask, const Graph &GlobalKeySetList, int Order, std::stringpath, bool LoopDoneAlready)340 bool Fragmentation::CheckOrderAtSite(AtomMask_t &AtomMask, const Graph &GlobalKeySetList, int Order, const std::string &path, bool LoopDoneAlready) 337 341 { 338 342 bool status = false; … … 391 395 * \return true - file writable, false - not writable 392 396 */ 393 bool Fragmentation::StoreOrderAtSiteFile( std::string &path)397 bool Fragmentation::StoreOrderAtSiteFile(const std::string &path) 394 398 { 395 399 string line; … … 418 422 * \sa ParseKeySetFile() and CheckAdjacencyFileAgainstMolecule() as this is meant to be used in conjunction with the two 419 423 */ 420 bool Fragmentation::ParseOrderAtSiteFromFile(const std::vector<atomId_t> &atomids, std::string &path)424 bool Fragmentation::ParseOrderAtSiteFromFile(const std::vector<atomId_t> &atomids, const std::string &path) 421 425 { 422 426 Info FunctionInfo(__func__); -
src/Fragmentation/Fragmentation.hpp
r17c03f re71325 37 37 ~Fragmentation(); 38 38 39 int FragmentMolecule(const std::vector<atomId_t> &atomids, int Order, std::stringprefix, DepthFirstSearchAnalysis &DFS);39 int FragmentMolecule(const std::vector<atomId_t> &atomids, int Order, const std::string &prefix, DepthFirstSearchAnalysis &DFS); 40 40 41 41 const Graph& getGraph() const { … … 49 49 50 50 // order at site 51 bool CheckOrderAtSite(AtomMask_t &AtomMask, const Graph &GlobalKeySetList, int Order, std::stringpath, bool LoopDoneAlready);52 bool StoreOrderAtSiteFile( std::string &path);53 bool ParseOrderAtSiteFromFile(const std::vector<atomId_t> &atomids, std::string &path);51 bool CheckOrderAtSite(AtomMask_t &AtomMask, const Graph &GlobalKeySetList, int Order, const std::string &path, bool LoopDoneAlready); 52 bool StoreOrderAtSiteFile(const std::string &path); 53 bool ParseOrderAtSiteFromFile(const std::vector<atomId_t> &atomids, const std::string &path); 54 54 55 55 // storing fragments -
src/Fragmentation/Graph.cpp
r17c03f re71325 88 88 * \return true - parsing successfully, false - failure on parsing (FragmentList will be NULL) 89 89 */ 90 bool Graph::ParseKeySetFile( std::string &path)90 bool Graph::ParseKeySetFile(const std::string &path) 91 91 { 92 92 bool status = true; … … 132 132 * \return true - file written successfully, false - writing failed 133 133 */ 134 bool Graph::StoreKeySetFile( std::string &path) const134 bool Graph::StoreKeySetFile(const std::string &path) const 135 135 { 136 136 bool status = true; -
src/Fragmentation/Graph.hpp
r17c03f re71325 32 32 void InsertGraph(const Graph &graph, int &counter); 33 33 34 bool ParseKeySetFile( std::string &path);35 bool StoreKeySetFile( std::string &path) const;34 bool ParseKeySetFile(const std::string &path); 35 bool StoreKeySetFile(const std::string &path) const; 36 36 bool ParseTEFactorsFile(char *path); 37 37 bool StoreTEFactorsFile(char *path) const;
Note:
See TracChangeset
for help on using the changeset viewer.