Changeset 5309ba
- 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)
- Location:
- src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FragmentationAction/ConstructBondGraphAction.cpp
r735b1c r5309ba 97 97 LC = new LinkedCell(cloud, BondDistance); 98 98 99 // create a list to map Tesselpoint:: ParticleInfo_nr to atom *99 // create a list to map Tesselpoint::Nr to atom * 100 100 DoLog(2) && (Log() << Verbose(2) << "Creating TesselPoint to atom map ... " << endl); 101 101 -
src/BoundaryPointSet.cpp
r735b1c r5309ba 71 71 { 72 72 Info FunctionInfo(__func__); 73 //Log() << Verbose(0) << "Erasing point ParticleInfo_nr. " << Nr << "." << endl;73 //Log() << Verbose(0) << "Erasing point Nr. " << Nr << "." << endl; 74 74 if (!lines.empty()) 75 75 DoeLog(2) && (eLog() << Verbose(2) << "Memory Leak! I " << *this << " am still connected to some lines." << endl); -
src/BoundaryPointSet.hpp
r735b1c r5309ba 50 50 const Vector& getPosition() const; 51 51 52 /** Getter for \a node's ParticleInfo_nr.52 /** Getter for \a node's Nr. 53 53 * 54 54 * @return getNr() of \a node -
src/Helpers/helpers.hpp
r735b1c r5309ba 78 78 if (count == 0) { 79 79 Walker = start; 80 while (Walker->next != end) { // create a lookup table (Atom:: ParticleInfo_nr -> atom) used as a marker table lateron80 while (Walker->next != end) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron 81 81 Walker = Walker->next; 82 82 count = (count < Walker->GetTrueFather()->nr) ? Walker->GetTrueFather()->nr : count; … … 96 96 } else { 97 97 Walker = start; 98 while (Walker->next != end) { // create a lookup table (Atom:: ParticleInfo_nr -> atom) used as a marker table lateron98 while (Walker->next != end) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron 99 99 Walker = Walker->next; 100 100 AtomNo = Walker->GetTrueFather()->nr; -
src/atom.cpp
r735b1c r5309ba 40 40 atom::atom() : 41 41 father(this), 42 sort(& ParticleInfo_nr),42 sort(&Nr), 43 43 mol(0) 44 44 {}; … … 49 49 ParticleInfo(pointer), 50 50 father(pointer), 51 sort(& ParticleInfo_nr),51 sort(&Nr), 52 52 mol(0) 53 53 { -
src/atom_bondedparticle.cpp
r735b1c r5309ba 68 68 }; 69 69 70 /** Output of atom:: ParticleInfo_nr along with all bond partners.70 /** Output of atom::Nr along with all bond partners. 71 71 * \param *AdjacencyFile output stream 72 72 */ … … 80 80 }; 81 81 82 /** Output of atom:: ParticleInfo_nr along each bond partner per line.83 * Only bonds are printed where atom:: ParticleInfo_nr is smaller than the one of the bond partner.82 /** Output of atom::Nr along each bond partner per line. 83 * Only bonds are printed where atom::Nr is smaller than the one of the bond partner. 84 84 * \param *AdjacencyFile output stream 85 85 */ -
src/atom_particleinfo.cpp
r735b1c r5309ba 27 27 */ 28 28 ParticleInfo::ParticleInfo() : 29 ParticleInfo_nr(-1),29 Nr(-1), 30 30 name("Unknown") 31 31 {}; 32 32 33 33 ParticleInfo::ParticleInfo(ParticleInfo *pointer) : 34 ParticleInfo_nr(pointer->ParticleInfo_nr),34 Nr(pointer->Nr), 35 35 name(pointer->name) 36 36 {} … … 58 58 const int& ParticleInfo::getNr() const 59 59 { 60 return ParticleInfo_nr;60 return Nr; 61 61 } 62 62 63 63 void ParticleInfo::setNr(const int newnr) 64 64 { 65 ParticleInfo_nr = newnr;65 Nr = newnr; 66 66 } 67 67 -
src/atom_particleinfo.hpp
r735b1c r5309ba 37 37 */ 38 38 const std::string& getName() const; 39 /** Getter for ParticleInfo_nr.39 /** Getter for Nr. 40 40 * 41 41 * @return number of particle 42 42 */ 43 43 const int& getNr() const; 44 /** Setter for ParticleInfo_nr.44 /** Setter for Nr. 45 45 * 46 46 * @param newnr number of particle … … 56 56 57 57 protected: 58 int ParticleInfo_nr; // index to easierly identify, only protected as used in atom::sort58 int Nr; // index to easierly identify, only protected as used in atom::sort 59 59 60 60 private: -
src/bond.cpp
r735b1c r5309ba 115 115 116 116 /** Checks if an atom exists in a bond. 117 * \param ParticleInfo_nr index of atom117 * \param Nr index of atom 118 118 * \return true if it is either bond::leftatom or bond::rightatom, false otherwise 119 119 */ -
src/boundary.cpp
r735b1c r5309ba 174 174 Vector AngleReferenceNormalVector; 175 175 Vector ProjectedVector; 176 Boundaries *BoundaryPoints = new Boundaries[NDIM]; // first is alpha, second is (r, ParticleInfo_nr)176 Boundaries *BoundaryPoints = new Boundaries[NDIM]; // first is alpha, second is (r, Nr) 177 177 double angle = 0.; 178 178 -
src/ellipsoid.cpp
r735b1c r5309ba 317 317 current = PickedAtomNrs.find(index); // not present? 318 318 if (current == PickedAtomNrs.end()) { 319 //Log() << Verbose(2) << "Picking atom ParticleInfo_nr. " << index << "." << endl;319 //Log() << Verbose(2) << "Picking atom Nr. " << index << "." << endl; 320 320 PickedAtomNrs.insert(index); 321 321 } … … 342 342 current++; // next pre-picked atom 343 343 } 344 index++; // next atom ParticleInfo_nr.344 index++; // next atom Nr. 345 345 } 346 346 // } else { -
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) << -
src/molecule_graph.cpp
r735b1c r5309ba 165 165 LC = new LinkedCell(cloud, bonddistance); 166 166 167 // create a list to map Tesselpoint:: ParticleInfo_nr to atom *167 // create a list to map Tesselpoint::Nr to atom * 168 168 DoLog(2) && (Log() << Verbose(2) << "Creating TesselPoint to atom map ... " << endl); 169 169 … … 1025 1025 * This is O(N) as the number of bonds per atom is bound. 1026 1026 * \param *vertex atom whose next atom::*ComponentNr is to be set 1027 * \param ParticleInfo_nr number to use1027 * \param Nr number to use 1028 1028 */ 1029 1029 void molecule::SetNextComponentNumber(atom *vertex, int nr) const … … 1095 1095 1096 1096 /** Storing the bond structure of a molecule to file. 1097 * Simply stores Atom:: ParticleInfo_nr and then the Atom::ParticleInfo_nr of all bond partners per line.1097 * Simply stores Atom::Nr and then the Atom::Nr of all bond partners per line. 1098 1098 * \param &filename name of file 1099 1099 * \param path path to file, defaults to empty … … 1127 1127 1128 1128 /** Storing the bond structure of a molecule to file. 1129 * Simply stores Atom:: ParticleInfo_nr and then the Atom::ParticleInfo_nr of all bond partners, one per line.1129 * Simply stores Atom::Nr and then the Atom::Nr of all bond partners, one per line. 1130 1130 * \param &filename name of file 1131 1131 * \param path path to file, defaults to empty … … 1217 1217 /** Checks contents of adjacency file against bond structure in structure molecule. 1218 1218 * \param *path path to file 1219 * \param **ListOfAtoms allocated (molecule::AtomCount) and filled lookup table for ids (Atom:: ParticleInfo_nr) to *Atom1219 * \param **ListOfAtoms allocated (molecule::AtomCount) and filled lookup table for ids (Atom::Nr) to *Atom 1220 1220 * \return true - structure is equal, false - not equivalence 1221 1221 */ … … 1273 1273 1274 1274 /** Picks from a global stack with all back edges the ones in the fragment. 1275 * \param **ListOfLocalAtoms array of father atom:: ParticleInfo_nr to local atom::ParticleInfo_nr (reverse of atom::father)1275 * \param **ListOfLocalAtoms array of father atom::Nr to local atom::Nr (reverse of atom::father) 1276 1276 * \param *ReferenceStack stack with all the back egdes 1277 1277 * \param *LocalStack stack to be filled -
src/moleculelist.cpp
r735b1c r5309ba 837 837 * \param *out output stream for debugging 838 838 * \param *&RootStack stack to be filled 839 * \param *AtomMask defines true/false per global Atom:: ParticleInfo_nr to mask in/out each nuclear site839 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site 840 840 * \param &FragmentCounter counts through the fragments in this MoleculeLeafClass 841 841 * \return true - stack is non-empty, fragmentation necessary, false - stack is empty, no more sites to update … … 871 871 }; 872 872 873 /** Fills a lookup list of father's Atom:: ParticleInfo_nr -> atom for each subgraph.873 /** Fills a lookup list of father's Atom::Nr -> atom for each subgraph. 874 874 * \param *out output stream from debugging 875 875 * \param **&ListOfLocalAtoms Lookup table for each subgraph and index of each atom in global molecule, may be NULL on start, then it is filled … … 891 891 }; 892 892 893 /** The indices per keyset are compared to the respective father's Atom:: ParticleInfo_nr in each subgraph and thus put into \a **&FragmentList.893 /** The indices per keyset are compared to the respective father's Atom::Nr in each subgraph and thus put into \a **&FragmentList. 894 894 * \param *out output stream fro debugging 895 895 * \param *reference reference molecule with the bond structure to be copied -
src/parser.cpp
r735b1c r5309ba 765 765 } 766 766 } 767 RowCounter[MatrixCounter]++; // ParticleInfo_nr start at 0, count starts at 1767 RowCounter[MatrixCounter]++; // Nr start at 0, count starts at 1 768 768 input.close(); 769 769 … … 1000 1000 } 1001 1001 } 1002 RowCounter[MatrixCounter]++; // ParticleInfo_nr start at 0, count starts at 11003 ColumnCounter[MatrixCounter]++; // ParticleInfo_nr start at 0, count starts at 11002 RowCounter[MatrixCounter]++; // Nr start at 0, count starts at 1 1003 ColumnCounter[MatrixCounter]++; // Nr start at 0, count starts at 1 1004 1004 input.close(); 1005 1005 -
src/tesselation.cpp
r735b1c r5309ba 708 708 709 709 /** Function adds triangle to global list. 710 * Furthermore, the triangle number is set to \a ParticleInfo_nr.710 * Furthermore, the triangle number is set to \a Nr. 711 711 * \param getNr() triangle number 712 712 */
Note:
See TracChangeset
for help on using the changeset viewer.