Changeset 5309ba for src/molecule_fragmentation.cpp
- Timestamp:
- Mar 1, 2011, 10:16:39 AM (14 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:
- f71baf
- Parents:
- 735b1c
- git-author:
- Frederik Heber <heber@…> (02/22/11 09:59:11)
- git-committer:
- Frederik Heber <heber@…> (03/01/11 10:16:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_fragmentation.cpp
r735b1c r5309ba 351 351 352 352 if (CountLinesinFile(InputFile) > 0) { 353 // each line represents a fragment root (Atom:: ParticleInfo_nr) id and its energy contribution353 // each line represents a fragment root (Atom::Nr) id and its energy contribution 354 354 InputFile.getline(buffer, MAXSTRINGSIZE); // skip comment lines 355 355 InputFile.getline(buffer, MAXSTRINGSIZE); … … 411 411 * Picks a given number of highest values and set *AtomMask to true. 412 412 * \param *out output stream for debugging 413 * \param *AtomMask defines true/false per global Atom:: ParticleInfo_nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively413 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively 414 414 * \param FinalRootCandidates list candidates to check 415 415 * \param Order desired order … … 437 437 /** print atom mask for debugging. 438 438 * \param *out output stream for debugging 439 * \param *AtomMask defines true/false per global Atom:: ParticleInfo_nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively439 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively 440 440 * \param AtomCount number of entries in \a *AtomMask 441 441 */ … … 453 453 454 454 /** Checks whether the OrderAtSite is still below \a Order at some site. 455 * \param *AtomMask defines true/false per global Atom:: ParticleInfo_nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively455 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site, used to activate given number of site to increment order adaptively 456 456 * \param *GlobalKeySetList list of keysets with global ids (valid in "this" molecule) needed for adaptive increase 457 457 * \param Order desired Order if positive, desired exponent in threshold criteria if negative (0 is single-step) … … 574 574 // count them 575 575 if (count == 0) { 576 for (molecule::iterator iter = begin(); iter != end(); ++iter) { // create a lookup table (Atom:: ParticleInfo_nr -> atom) used as a marker table lateron576 for (molecule::iterator iter = begin(); iter != end(); ++iter) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron 577 577 count = (count < (*iter)->GetTrueFather()->getNr()) ? (*iter)->GetTrueFather()->getNr() : count; 578 578 } … … 655 655 // ===== 1. Check whether bond structure is same as stored in files ==== 656 656 657 // create lookup table for Atom:: ParticleInfo_nr657 // create lookup table for Atom::Nr 658 658 FragmentationToDo = FragmentationToDo && CreateFatherLookupTable(ListOfAtoms, getAtomCount()); 659 659 … … 854 854 855 855 856 /** Stores pairs (Atom:: ParticleInfo_nr, Atom::AdaptiveOrder) into file.856 /** Stores pairs (Atom::Nr, Atom::AdaptiveOrder) into file. 857 857 * Atoms not present in the file get "-1". 858 858 * \param &path path to file ORDERATSITEFILE … … 878 878 }; 879 879 880 /** Parses pairs(Atom:: ParticleInfo_nr, Atom::AdaptiveOrder) from file and stores in molecule's Atom's.880 /** Parses pairs(Atom::Nr, Atom::AdaptiveOrder) from file and stores in molecule's Atom's. 881 881 * Atoms not present in the file get "0". 882 882 * \param &path path to file ORDERATSITEFILEe … … 1018 1018 if (SonList[OtherFather->getNr()] != NULL) { 1019 1019 // Log() << Verbose(0) << ", whose son is " << *SonList[OtherFather->getNr()] << "." << endl; 1020 if (OtherFather->getNr() > FatherOfRunner->getNr()) { // add bond ( ParticleInfo_nr check is for adding only one of both variants: ab, ba)1020 if (OtherFather->getNr() > FatherOfRunner->getNr()) { // add bond (Nr check is for adding only one of both variants: ab, ba) 1021 1021 // Log() << Verbose(3) << "Adding Bond: "; 1022 1022 // Log() << Verbose(0) <<
Note:
See TracChangeset
for help on using the changeset viewer.