Ignore:
Timestamp:
Nov 23, 2009, 6:22:33 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
3d4969
Parents:
09d3b8
Message:

Verbosity corrected for ERROR and WARNING

  • present ERROR and WARNING prefixes removed and placed by eLog() and respective Verbosity().
  • -v... is scanned for number of 'v's and verbosity is set accordingly
  • standard verbosity is now 0.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule.cpp

    r09d3b8 r418117a  
    192192  BondRescale = TopOrigin->type->HBondDistance[TopBond->BondDegree-1];
    193193  if (BondRescale == -1) {
    194     eLog() << Verbose(3) << "ERROR: There is no typical hydrogen bond distance in replacing bond (" << TopOrigin->Name << "<->" << TopReplacement->Name << ") of degree " << TopBond->BondDegree << "!" << endl;
     194    eLog() << Verbose(1) << "There is no typical hydrogen bond distance in replacing bond (" << TopOrigin->Name << "<->" << TopReplacement->Name << ") of degree " << TopBond->BondDegree << "!" << endl;
    195195    return false;
    196196    BondRescale = bondlength;
     
    235235            SecondOtherAtom = (*Runner)->GetOtherAtom(TopOrigin);
    236236          } else {
    237             Log() << Verbose(3) << "WARNING: Detected more than four bonds for atom " << TopOrigin->Name;
     237            eLog() << Verbose(2) << "Detected more than four bonds for atom " << TopOrigin->Name;
    238238          }
    239239        }
     
    272272      bondangle = TopOrigin->type->HBondAngle[1];
    273273      if (bondangle == -1) {
    274         Log() << Verbose(3) << "ERROR: There is no typical hydrogen bond angle in replacing bond (" << TopOrigin->Name << "<->" << TopReplacement->Name << ") of degree " << TopBond->BondDegree << "!" << endl;
     274        eLog() << Verbose(1) << "There is no typical hydrogen bond angle in replacing bond (" << TopOrigin->Name << "<->" << TopReplacement->Name << ") of degree " << TopBond->BondDegree << "!" << endl;
    275275        return false;
    276276        bondangle = 0;
     
    394394      break;
    395395    default:
    396       eLog() << Verbose(0) << "ERROR: BondDegree does not state single, double or triple bond!" << endl;
     396      eLog() << Verbose(1) << "BondDegree does not state single, double or triple bond!" << endl;
    397397      AllWentWell = false;
    398398      break;
     
    541541    add(Binder, last);
    542542  } else {
    543     eLog() << Verbose(1) << "ERROR: Could not add bond between " << atom1->Name << " and " << atom2->Name << " as one or both are not present in the molecule." << endl;
     543    eLog() << Verbose(1) << "Could not add bond between " << atom1->Name << " and " << atom2->Name << " as one or both are not present in the molecule." << endl;
    544544  }
    545545  return Binder;
     
    619619    AtomCount--;
    620620  } else
    621     eLog() << Verbose(0) << "ERROR: Atom " << pointer->Name << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl;
     621    eLog() << Verbose(1) << "Atom " << pointer->Name << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl;
    622622  if (ElementsInMolecule[pointer->type->Z] == 0)  // was last atom of this element?
    623623    ElementCount--;
     
    637637    ElementsInMolecule[pointer->type->Z]--; // decrease number of atom of this element
    638638  else
    639     eLog() << Verbose(0) << "ERROR: Atom " << pointer->Name << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl;
     639    eLog() << Verbose(1) << "Atom " << pointer->Name << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl;
    640640  if (ElementsInMolecule[pointer->type->Z] == 0)  // was last atom of this element?
    641641    ElementCount--;
Note: See TracChangeset for help on using the changeset viewer.