Changeset 543ce4 for molecuilder/src/helpers.hpp
- Timestamp:
- Nov 4, 2009, 7:56:04 PM (16 years ago)
- Children:
- 4ef101, aa8542
- Parents:
- ec70ec
- File:
-
- 1 edited
-
molecuilder/src/helpers.hpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.hpp
rec70ec r543ce4 19 19 20 20 #include "defs.hpp" 21 #include "log.hpp" 21 22 #include "memoryallocator.hpp" 22 23 … … 76 77 77 78 /** Creates a lookup table for true father's Atom::Nr -> atom ptr. 78 * \param *out output stream for debugging79 79 * \param *start begin of chain list 80 80 * \paran *end end of chain list … … 83 83 * \return true - success, false - failure 84 84 */ 85 template <typename T> bool CreateFatherLookupTable( ofstream *out,T *start, T *end, T **&LookupTable, int count = 0)85 template <typename T> bool CreateFatherLookupTable(T *start, T *end, T **&LookupTable, int count = 0) 86 86 { 87 87 bool status = true; … … 90 90 91 91 if (LookupTable != NULL) { 92 *out<< "Pointer for Lookup table is not NULL! Aborting ..." <<endl;92 Log() << Verbose(0) << "Pointer for Lookup table is not NULL! Aborting ..." <<endl; 93 93 return false; 94 94 } … … 103 103 } 104 104 if (count <= 0) { 105 *out<< "Count of lookup list is 0 or less." << endl;105 Log() << Verbose(0) << "Count of lookup list is 0 or less." << endl; 106 106 return false; 107 107 } … … 110 110 LookupTable = Calloc<T*>(count, "CreateFatherLookupTable - **LookupTable"); 111 111 if (LookupTable == NULL) { 112 cerr<< "LookupTable memory allocation failed!" << endl;112 eLog() << Verbose(0) << "LookupTable memory allocation failed!" << endl; 113 113 status = false; 114 114 } else { … … 121 121 LookupTable[AtomNo] = Walker; 122 122 } else { 123 *out<< "Walker " << *Walker << " exceeded range of nuclear ids [0, " << count << ")." << endl;123 Log() << Verbose(0) << "Walker " << *Walker << " exceeded range of nuclear ids [0, " << count << ")." << endl; 124 124 status = false; 125 125 break;
Note:
See TracChangeset
for help on using the changeset viewer.
