Ignore:
Timestamp:
Oct 18, 2009, 4:09:26 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
6e250f
Parents:
c9f639
Message:

Shifted molecuke::InitComponentNumbers() to atom::InitComponentNr.

Note that this is still only possible due to ListOfBondsPerAtom() -> atom::ListOfBonds() switch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    rc9f639 rf444ce  
    292292};
    293293
     294/** Outputs the current atom::AdaptiveOrder and atom::MaxOrder to \a *file.
     295 * \param *file output stream
     296 */
     297void atom::OutputOrder(ofstream *file)
     298{
     299  *file << nr << "\t" << (int)AdaptiveOrder << "\t" << (int)MaxOrder << endl;
     300  //cout << Verbose(2) << "Storing: " << nr << "\t" << (int)AdaptiveOrder << "\t" << (int)MaxOrder << "." << endl;
     301};
     302
     303/** Initialises the component number array.
     304 * Size is set to atom::ListOfBonds.size()+1 (last is th encode end by -1)
     305 */
     306void atom::InitComponentNr()
     307{
     308  if (ComponentNr != NULL)
     309    Free(&ComponentNr);
     310  ComponentNr = Malloc<int>(ListOfBonds.size()+1, "atom::InitComponentNumbers: *ComponentNr");
     311  for (int i=ListOfBonds.size()+1;i--;)
     312    ComponentNr[i] = -1;
     313};
     314
    294315/** Puts a given bond into atom::ListOfBonds.
    295316 * \param *Binder bond to insert
     
    471492};
    472493
    473 /** Outputs the current atom::AdaptiveOrder and atom::MaxOrder to \a *file.
    474  * \param *file output stream
    475  */
    476 void atom::OutputOrder(ofstream *file)
    477 {
    478   *file << nr << "\t" << (int)AdaptiveOrder << "\t" << (int)MaxOrder << endl;
    479   //cout << Verbose(2) << "Storing: " << nr << "\t" << (int)AdaptiveOrder << "\t" << (int)MaxOrder << "." << endl;
    480 }
    481 
    482494/** Returns squared distance to a given vector.
    483495 * \param origin vector to calculate distance to
Note: See TracChangeset for help on using the changeset viewer.