Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/helpers.hpp

    ra67d19 re138de  
    7676};
    7777
    78 /** returns greater of the two values.
    79  * \param x first value
    80  * \param y second value
    81  * \return greater of the two (by operator>())
    82  */
    83 template <typename T> T Max(T x, T y)
    84 {
    85   if (x > y)
    86     return x;
    87   else return y;
    88 };
    89 
    90 /** returns smaller of the two values.
    91  * \param x first value
    92  * \param y second value
    93  * \return smaller of the two (by operator<())
    94  */
    95 template <typename T> T Min(T x, T y)
    96 {
    97   if (x < y)
    98     return x;
    99   else return y;
    100 };
    101 
    10278/** Creates a lookup table for true father's Atom::Nr -> atom ptr.
    10379 * \param *start begin of chain list
     
    11490
    11591  if (LookupTable != NULL) {
    116     DoLog(0) && (Log() << Verbose(0) << "Pointer for Lookup table is not NULL! Aborting ..." <<endl);
     92    Log() << Verbose(0) << "Pointer for Lookup table is not NULL! Aborting ..." <<endl;
    11793    return false;
    11894  }
     
    127103  }
    128104  if (count <= 0) {
    129     DoLog(0) && (Log() << Verbose(0) << "Count of lookup list is 0 or less." << endl);
     105    Log() << Verbose(0) << "Count of lookup list is 0 or less." << endl;
    130106    return false;
    131107  }
     
    134110  LookupTable = Calloc<T*>(count, "CreateFatherLookupTable - **LookupTable");
    135111  if (LookupTable == NULL) {
    136     DoeLog(0) && (eLog()<< Verbose(0) << "LookupTable memory allocation failed!" << endl);
    137     performCriticalExit();
     112    eLog() << Verbose(0) << "LookupTable memory allocation failed!" << endl;
    138113    status = false;
    139114  } else {
     
    146121        LookupTable[AtomNo] = Walker;
    147122      } else {
    148         DoLog(0) && (Log() << Verbose(0) << "Walker " << *Walker << " exceeded range of nuclear ids [0, " << count << ")." << endl);
     123        Log() << Verbose(0) << "Walker " << *Walker << " exceeded range of nuclear ids [0, " << count << ")." << endl;
    149124        status = false;
    150125        break;
Note: See TracChangeset for help on using the changeset viewer.