Changeset f444ce for molecuilder/src/atom.cpp
- Timestamp:
- Oct 18, 2009, 4:09:26 PM (16 years ago)
- Children:
- 6e250f
- Parents:
- c9f639
- File:
-
- 1 edited
-
molecuilder/src/atom.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom.cpp
rc9f639 rf444ce 292 292 }; 293 293 294 /** Outputs the current atom::AdaptiveOrder and atom::MaxOrder to \a *file. 295 * \param *file output stream 296 */ 297 void 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 */ 306 void 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 294 315 /** Puts a given bond into atom::ListOfBonds. 295 316 * \param *Binder bond to insert … … 471 492 }; 472 493 473 /** Outputs the current atom::AdaptiveOrder and atom::MaxOrder to \a *file.474 * \param *file output stream475 */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 482 494 /** Returns squared distance to a given vector. 483 495 * \param origin vector to calculate distance to
Note:
See TracChangeset
for help on using the changeset viewer.
