Changeset 5309ba


Ignore:
Timestamp:
Mar 1, 2011, 10:16:39 AM (14 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:
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)
Message:

Renamed ParticleInfo_nr back to Nr.

  • Note that this mostly affected comments.
Location:
src
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/ConstructBondGraphAction.cpp

    r735b1c r5309ba  
    9797    LC = new LinkedCell(cloud, BondDistance);
    9898
    99     // create a list to map Tesselpoint::ParticleInfo_nr to atom *
     99    // create a list to map Tesselpoint::Nr to atom *
    100100    DoLog(2) && (Log() << Verbose(2) << "Creating TesselPoint to atom map ... " << endl);
    101101
  • src/BoundaryPointSet.cpp

    r735b1c r5309ba  
    7171{
    7272  Info FunctionInfo(__func__);
    73   //Log() << Verbose(0) << "Erasing point ParticleInfo_nr. " << Nr << "." << endl;
     73  //Log() << Verbose(0) << "Erasing point Nr. " << Nr << "." << endl;
    7474  if (!lines.empty())
    7575    DoeLog(2) && (eLog() << Verbose(2) << "Memory Leak! I " << *this << " am still connected to some lines." << endl);
  • src/BoundaryPointSet.hpp

    r735b1c r5309ba  
    5050    const Vector& getPosition() const;
    5151
    52     /** Getter for \a node's ParticleInfo_nr.
     52    /** Getter for \a node's Nr.
    5353     *
    5454     * @return getNr() of \a node
  • src/Helpers/helpers.hpp

    r735b1c r5309ba  
    7878  if (count == 0) {
    7979    Walker = start;
    80     while (Walker->next != end) { // create a lookup table (Atom::ParticleInfo_nr -> atom) used as a marker table lateron
     80    while (Walker->next != end) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron
    8181      Walker = Walker->next;
    8282      count = (count < Walker->GetTrueFather()->nr) ? Walker->GetTrueFather()->nr : count;
     
    9696  } else {
    9797    Walker = start;
    98     while (Walker->next != end) { // create a lookup table (Atom::ParticleInfo_nr -> atom) used as a marker table lateron
     98    while (Walker->next != end) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron
    9999      Walker = Walker->next;
    100100      AtomNo = Walker->GetTrueFather()->nr;
  • src/atom.cpp

    r735b1c r5309ba  
    4040atom::atom() :
    4141  father(this),
    42   sort(&ParticleInfo_nr),
     42  sort(&Nr),
    4343  mol(0)
    4444{};
     
    4949    ParticleInfo(pointer),
    5050    father(pointer),
    51     sort(&ParticleInfo_nr),
     51    sort(&Nr),
    5252    mol(0)
    5353{
  • src/atom_bondedparticle.cpp

    r735b1c r5309ba  
    6868};
    6969
    70 /** Output of atom::ParticleInfo_nr along with all bond partners.
     70/** Output of atom::Nr along with all bond partners.
    7171 * \param *AdjacencyFile output stream
    7272 */
     
    8080};
    8181
    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.
    8484 * \param *AdjacencyFile output stream
    8585 */
  • src/atom_particleinfo.cpp

    r735b1c r5309ba  
    2727 */
    2828ParticleInfo::ParticleInfo() :
    29   ParticleInfo_nr(-1),
     29  Nr(-1),
    3030  name("Unknown")
    3131{};
    3232
    3333ParticleInfo::ParticleInfo(ParticleInfo *pointer) :
    34   ParticleInfo_nr(pointer->ParticleInfo_nr),
     34  Nr(pointer->Nr),
    3535  name(pointer->name)
    3636{}
     
    5858const int& ParticleInfo::getNr() const
    5959{
    60   return ParticleInfo_nr;
     60  return Nr;
    6161}
    6262
    6363void ParticleInfo::setNr(const int newnr)
    6464{
    65   ParticleInfo_nr = newnr;
     65  Nr = newnr;
    6666}
    6767
  • src/atom_particleinfo.hpp

    r735b1c r5309ba  
    3737   */
    3838  const std::string& getName() const;
    39   /** Getter for ParticleInfo_nr.
     39  /** Getter for Nr.
    4040   *
    4141   * @return number of particle
    4242   */
    4343  const int& getNr() const;
    44   /** Setter for ParticleInfo_nr.
     44  /** Setter for Nr.
    4545   *
    4646   * @param newnr number of particle
     
    5656
    5757protected:
    58   int ParticleInfo_nr;       // index to easierly identify, only protected as used in atom::sort
     58  int Nr;       // index to easierly identify, only protected as used in atom::sort
    5959
    6060private:
  • src/bond.cpp

    r735b1c r5309ba  
    115115
    116116/** Checks if an atom exists in a bond.
    117  * \param ParticleInfo_nr index of atom
     117 * \param Nr index of atom
    118118 * \return true if it is either bond::leftatom or bond::rightatom, false otherwise
    119119 */
  • src/boundary.cpp

    r735b1c r5309ba  
    174174  Vector AngleReferenceNormalVector;
    175175  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)
    177177  double angle = 0.;
    178178
  • src/ellipsoid.cpp

    r735b1c r5309ba  
    317317      current = PickedAtomNrs.find(index);  // not present?
    318318      if (current == PickedAtomNrs.end()) {
    319         //Log() << Verbose(2) << "Picking atom ParticleInfo_nr. " << index << "." << endl;
     319        //Log() << Verbose(2) << "Picking atom Nr. " << index << "." << endl;
    320320        PickedAtomNrs.insert(index);
    321321      }
     
    342342                current++;    // next pre-picked atom
    343343              }
    344               index++;  // next atom ParticleInfo_nr.
     344              index++;  // next atom Nr.
    345345            }
    346346//          } else {
  • src/molecule_fragmentation.cpp

    r735b1c r5309ba  
    351351
    352352  if (CountLinesinFile(InputFile) > 0) {
    353     // each line represents a fragment root (Atom::ParticleInfo_nr) id and its energy contribution
     353    // each line represents a fragment root (Atom::Nr) id and its energy contribution
    354354    InputFile.getline(buffer, MAXSTRINGSIZE); // skip comment lines
    355355    InputFile.getline(buffer, MAXSTRINGSIZE);
     
    411411 * Picks a given number of highest values and set *AtomMask to true.
    412412 * \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 adaptively
     413 * \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
    414414 * \param FinalRootCandidates list candidates to check
    415415 * \param Order desired order
     
    437437/** print atom mask for debugging.
    438438 * \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 adaptively
     439 * \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
    440440 * \param AtomCount number of entries in \a *AtomMask
    441441 */
     
    453453
    454454/** 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 adaptively
     455 * \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
    456456 * \param *GlobalKeySetList list of keysets with global ids (valid in "this" molecule) needed for adaptive increase
    457457 * \param Order desired Order if positive, desired exponent in threshold criteria if negative (0 is single-step)
     
    574574  // count them
    575575  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 lateron
     576    for (molecule::iterator iter = begin(); iter != end(); ++iter) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron
    577577      count = (count < (*iter)->GetTrueFather()->getNr()) ? (*iter)->GetTrueFather()->getNr() : count;
    578578    }
     
    655655  // ===== 1. Check whether bond structure is same as stored in files ====
    656656
    657   // create lookup table for Atom::ParticleInfo_nr
     657  // create lookup table for Atom::Nr
    658658  FragmentationToDo = FragmentationToDo && CreateFatherLookupTable(ListOfAtoms, getAtomCount());
    659659
     
    854854
    855855
    856 /** Stores pairs (Atom::ParticleInfo_nr, Atom::AdaptiveOrder) into file.
     856/** Stores pairs (Atom::Nr, Atom::AdaptiveOrder) into file.
    857857 * Atoms not present in the file get "-1".
    858858 * \param &path path to file ORDERATSITEFILE
     
    878878};
    879879
    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.
    881881 * Atoms not present in the file get "0".
    882882 * \param &path path to file ORDERATSITEFILEe
     
    10181018        if (SonList[OtherFather->getNr()] != NULL) {
    10191019//          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)
    10211021//            Log() << Verbose(3) << "Adding Bond: ";
    10221022//            Log() << Verbose(0) <<
  • src/molecule_graph.cpp

    r735b1c r5309ba  
    165165    LC = new LinkedCell(cloud, bonddistance);
    166166
    167     // create a list to map Tesselpoint::ParticleInfo_nr to atom *
     167    // create a list to map Tesselpoint::Nr to atom *
    168168    DoLog(2) && (Log() << Verbose(2) << "Creating TesselPoint to atom map ... " << endl);
    169169
     
    10251025 * This is O(N) as the number of bonds per atom is bound.
    10261026 * \param *vertex atom whose next atom::*ComponentNr is to be set
    1027  * \param ParticleInfo_nr number to use
     1027 * \param Nr number to use
    10281028 */
    10291029void molecule::SetNextComponentNumber(atom *vertex, int nr) const
     
    10951095
    10961096/** 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.
    10981098 * \param &filename name of file
    10991099 * \param path path to file, defaults to empty
     
    11271127
    11281128/** 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.
    11301130 * \param &filename name of file
    11311131 * \param path path to file, defaults to empty
     
    12171217/** Checks contents of adjacency file against bond structure in structure molecule.
    12181218 * \param *path path to file
    1219  * \param **ListOfAtoms allocated (molecule::AtomCount) and filled lookup table for ids (Atom::ParticleInfo_nr) to *Atom
     1219 * \param **ListOfAtoms allocated (molecule::AtomCount) and filled lookup table for ids (Atom::Nr) to *Atom
    12201220 * \return true - structure is equal, false - not equivalence
    12211221 */
     
    12731273
    12741274/** 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)
    12761276 * \param *ReferenceStack stack with all the back egdes
    12771277 * \param *LocalStack stack to be filled
  • src/moleculelist.cpp

    r735b1c r5309ba  
    837837 * \param *out output stream for debugging
    838838 * \param *&RootStack stack to be filled
    839  * \param *AtomMask defines true/false per global Atom::ParticleInfo_nr to mask in/out each nuclear site
     839 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site
    840840 * \param &FragmentCounter counts through the fragments in this MoleculeLeafClass
    841841 * \return true - stack is non-empty, fragmentation necessary, false - stack is empty, no more sites to update
     
    871871};
    872872
    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.
    874874 * \param *out output stream from debugging
    875875 * \param **&ListOfLocalAtoms Lookup table for each subgraph and index of each atom in global molecule, may be NULL on start, then it is filled
     
    891891};
    892892
    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.
    894894 * \param *out output stream fro debugging
    895895 * \param *reference reference molecule with the bond structure to be copied
  • src/parser.cpp

    r735b1c r5309ba  
    765765      }
    766766    }
    767     RowCounter[MatrixCounter]++;    // ParticleInfo_nr start at 0, count starts at 1
     767    RowCounter[MatrixCounter]++;    // Nr start at 0, count starts at 1
    768768    input.close();
    769769
     
    10001000      }
    10011001    }
    1002     RowCounter[MatrixCounter]++;    // ParticleInfo_nr start at 0, count starts at 1
    1003     ColumnCounter[MatrixCounter]++;    // ParticleInfo_nr start at 0, count starts at 1
     1002    RowCounter[MatrixCounter]++;    // Nr start at 0, count starts at 1
     1003    ColumnCounter[MatrixCounter]++;    // Nr start at 0, count starts at 1
    10041004    input.close();
    10051005 
  • src/tesselation.cpp

    r735b1c r5309ba  
    708708
    709709/** 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.
    711711 * \param getNr() triangle number
    712712 */
Note: See TracChangeset for help on using the changeset viewer.