Changeset 717e0c for src


Ignore:
Timestamp:
Nov 23, 2009, 6:22:33 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
e359a8
Parents:
f1ef60a
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@…>

Location:
src
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • src/analyzer.cpp

    rf1ef60a r717e0c  
    9494  if (!Hcorrection.ParseFragmentMatrix(argv[1], "", HCORRECTIONSUFFIX,0,0)) {
    9595    NoHCorrection = true;
    96     Log() << Verbose(0) << "No HCorrection file found, skipping these." << endl;
     96    eLog() << Verbose(2) << "No HCorrection file found, skipping these." << endl;
    9797  }
    9898 
     
    100100  if (!Hessian.ParseFragmentMatrix(argv[1], dir, HessianSuffix,0,0)) {
    101101    NoHessian = true;
    102     Log() << Verbose(0) << "No Hessian file found, skipping these." << endl;
     102    eLog() << Verbose(2) << "No Hessian file found, skipping these." << endl;
    103103  }
    104104  if (!Time.ParseFragmentMatrix(argv[1], dir, TimeSuffix, 10,1)) {
    105105    NoTime = true;
    106     Log() << Verbose(0) << "No speed file found, skipping these." << endl;
     106    eLog() << Verbose(2) << "No speed file found, skipping these." << endl;
    107107  }
    108108  if (periode != NULL) { // also look for PAS values
  • src/atom_bondedparticle.cpp

    rf1ef60a r717e0c  
    4444void BondedParticle::OutputBondOfAtom() const
    4545{
    46   Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: ";
     46  Log() << Verbose(4) << "Atom " << Name << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl;
    4747  int TotalDegree = 0;
    4848  for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); ++Runner) {
    49     Log() << Verbose(0) << **Runner << "\t";
     49    Log() << Verbose(4) << **Runner << endl;
    5050    TotalDegree += (*Runner)->BondDegree;
    5151  }
    52   Log() << Verbose(0) << " -- TotalDegree: " << TotalDegree << endl;
     52  Log() << Verbose(4) << " -- TotalDegree: " << TotalDegree << endl;
    5353};
    5454
     
    7575      status = true;
    7676    } else {
    77       Log() << Verbose(1) << "ERROR: " << *Binder << " does not contain " << *this << "." << endl;
     77      eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
    7878    }
    7979  } else {
    80     Log() << Verbose(1) << "ERROR: Binder is " << Binder << "." << endl;
     80    eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
    8181  }
    8282  return status;
     
    9494      status = true;
    9595    } else {
    96       Log() << Verbose(1) << "ERROR: " << *Binder << " does not contain " << *this << "." << endl;
     96      eLog() << Verbose(1) << *Binder << " does not contain " << *this << "." << endl;
    9797    }
    9898  } else {
    99     Log() << Verbose(1) << "ERROR: Binder is " << Binder << "." << endl;
     99    eLog() << Verbose(1) << "Binder is " << Binder << "." << endl;
    100100  }
    101101  return status;
  • src/atom_graphnode.cpp

    rf1ef60a r717e0c  
    2929  Log() << Verbose(2) << "Atom " << Name << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are ";
    3030  OutputComponentNumber();
    31   Log() << Verbose(0) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl;
     31  Log() << Verbose(3) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl;
    3232};
    3333
     
    4040  if (ComponentNr != NULL) {
    4141    for (int i=0; ComponentNr[i] != -1; i++)
    42       Log() << Verbose(0) << ComponentNr[i] << " ";
     42      Log() << Verbose(2) << ComponentNr[i] << " ";
    4343  }
    4444};
  • src/atom_trajectoryparticle.cpp

    rf1ef60a r717e0c  
    203203        U[d] = gsl_ran_gaussian (r, sigma);
    204204      }
    205       Log() << Verbose(0) << sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << endl;
     205      Log() << Verbose(2) << sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << endl;
    206206    }
    207207    for (int d=0; d<NDIM; d++)
  • src/bond.cpp

    rf1ef60a r717e0c  
    6363  if(rightatom == Atom)
    6464    return leftatom;
    65   eLog() << Verbose(0) << "Bond " << *this << " does not contain atom " << *Atom << "!" << endl;
     65  eLog() << Verbose(1) << "Bond " << *this << " does not contain atom " << *Atom << "!" << endl;
    6666  return NULL;
    6767};
     
    9999bool bond::MarkUsed(const enum Shading color) {
    100100  if (Used == black) {
    101     eLog() << Verbose(0) << "ERROR: Bond " << this << " was already marked black!." << endl;
     101    eLog() << Verbose(1) << "Bond " << this << " was already marked black!." << endl;
    102102    return false;
    103103  } else {
  • src/bondgraph.cpp

    rf1ef60a r717e0c  
    153153{
    154154  if (BondLengthMatrix == NULL) {// safety measure if no matrix has been parsed yet
    155     eLog() << Verbose(1) << "WARNING:  BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl;
     155    eLog() << Verbose(2) << "BondLengthMatrixMinMaxDistance() called without having parsed the bond length matrix yet!" << endl;
    156156    CovalentMinMaxDistance(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem);
    157157  } else {
  • src/boundary.cpp

    rf1ef60a r717e0c  
    176176        angle = 0.; // otherwise it's a vector in Axis Direction and unimportant for boundary issues
    177177
    178       //Log() << Verbose(0) << "Checking sign in quadrant : " << ProjectedVector.Projection(&AngleReferenceNormalVector) << "." << endl;
     178      //Log() << Verbose(2) << "Checking sign in quadrant : " << ProjectedVector.Projection(&AngleReferenceNormalVector) << "." << endl;
    179179      if (ProjectedVector.ScalarProduct(&AngleReferenceNormalVector) > 0) {
    180180        angle = 2. * M_PI - angle;
     
    214214    //      for(Boundaries::iterator runner = BoundaryPoints[axis].begin(); runner != BoundaryPoints[axis].end(); runner++) {
    215215    //        if (runner != BoundaryPoints[axis].begin())
    216     //          Log() << Verbose(0) << ", " << i << ": " << *runner->second.second;
     216    //          Log() << Verbose(2) << ", " << i << ": " << *runner->second.second;
    217217    //        else
    218     //          Log() << Verbose(0) << i << ": " << *runner->second.second;
     218    //          Log() << Verbose(2) << i << ": " << *runner->second.second;
    219219    //        i++;
    220220    //      }
    221     //      Log() << Verbose(0) << endl;
     221    //      Log() << Verbose(2) << endl;
    222222    //    }
    223223    // 3c. throw out points whose distance is less than the mean of left and right neighbours
     
    249249          SideA.SubtractVector(MolCenter);
    250250          SideA.ProjectOntoPlane(&AxisVector);
    251           //          Log() << Verbose(0) << "SideA: ";
    252           //          SideA.Output(out);
    253           //          Log() << Verbose(0) << endl;
     251          //          Log() << Verbose(0) << "SideA: " << SideA << endl;
    254252
    255253          SideB.CopyVector(&right->second.second->x);
    256254          SideB.SubtractVector(MolCenter);
    257255          SideB.ProjectOntoPlane(&AxisVector);
    258           //          Log() << Verbose(0) << "SideB: ";
    259           //          SideB.Output(out);
    260           //          Log() << Verbose(0) << endl;
     256          //          Log() << Verbose(0) << "SideB: " << SideB << endl;
    261257
    262258          SideC.CopyVector(&left->second.second->x);
    263259          SideC.SubtractVector(&right->second.second->x);
    264260          SideC.ProjectOntoPlane(&AxisVector);
    265           //          Log() << Verbose(0) << "SideC: ";
    266           //          SideC.Output(out);
    267           //          Log() << Verbose(0) << endl;
     261          //          Log() << Verbose(0) << "SideC: " << SideC << endl;
    268262
    269263          SideH.CopyVector(&runner->second.second->x);
    270264          SideH.SubtractVector(MolCenter);
    271265          SideH.ProjectOntoPlane(&AxisVector);
    272           //          Log() << Verbose(0) << "SideH: ";
    273           //          SideH.Output(out);
    274           //          Log() << Verbose(0) << endl;
     266          //          Log() << Verbose(0) << "SideH: " << SideH << endl;
    275267
    276268          // calculate each length
     
    335327      for(Boundaries::iterator runner = BoundaryPoints[axis].begin(); runner != BoundaryPoints[axis].end(); runner++) {
    336328        if (runner != BoundaryPoints[axis].begin())
    337           Log() << Verbose(0) << ", " << i << ": " << *runner->second.second;
     329          Log() << Verbose(2) << ", " << i << ": " << *runner->second.second;
    338330        else
    339           Log() << Verbose(0) << i << ": " << *runner->second.second;
     331          Log() << Verbose(2) << i << ": " << *runner->second.second;
    340332        i++;
    341333      }
    342       Log() << Verbose(0) << endl;
     334      Log() << Verbose(2) << endl;
    343335    }
    344336
     
    347339    for (Boundaries::iterator runner = BoundaryPoints[axis].begin(); runner != BoundaryPoints[axis].end(); runner++)
    348340        if (!TesselStruct->AddBoundaryPoint(runner->second.second, 0))
    349           Log() << Verbose(3) << "WARNING: Point " << *(runner->second.second) << " is already present!" << endl;
     341          eLog() << Verbose(2) << "Point " << *(runner->second.second) << " is already present!" << endl;
    350342
    351343  Log() << Verbose(2) << "I found " << TesselStruct->PointsOnBoundaryCount << " points on the convex boundary." << endl;
     
    355347  //  Log() << Verbose(1) << "Listing PointsOnBoundary:";
    356348  //  for(PointMap::iterator runner = PointsOnBoundary.begin(); runner != PointsOnBoundary.end(); runner++) {
    357   //    Log() << Verbose(0) << " " << *runner->second;
     349  //    Log() << Verbose(1) << " " << *runner->second;
    358350  //  }
    359   //  Log() << Verbose(0) << endl;
     351  //  Log() << Verbose(1) << endl;
    360352
    361353  // 3a. guess starting triangle
     
    406398        // flip the line
    407399        if (TesselStruct->PickFarthestofTwoBaselines(line) == 0.)
    408           Log() << Verbose(1) << "ERROR: Correction of concave baselines failed!" << endl;
     400          eLog() << Verbose(1) << "Correction of concave baselines failed!" << endl;
    409401        else {
    410402          TesselStruct->FlipBaseline(line);
     
    462454
    463455  if ((TesselStruct == NULL) || (TesselStruct->PointsOnBoundary.empty())) {
    464     Log() << Verbose(2) << "ERROR: TesselStruct is empty." << endl;
     456    eLog() << Verbose(1) << "TesselStruct is empty." << endl;
    465457    return false;
    466458  }
     
    470462    Log() << Verbose(2) << "Remaining points are: ";
    471463    for (PointMap::iterator PointSprinter = TesselStruct->PointsOnBoundary.begin(); PointSprinter != TesselStruct->PointsOnBoundary.end(); PointSprinter++)
    472       Log() << Verbose(0) << *(PointSprinter->second) << "\t";
    473     Log() << Verbose(0) << endl;
     464      Log() << Verbose(2) << *(PointSprinter->second) << "\t";
     465    Log() << Verbose(2) << endl;
    474466
    475467    PointRunner = TesselStruct->PointsOnBoundary.begin();
     
    528520  // check whether there is something to work on
    529521  if (TesselStruct == NULL) {
    530     Log() << Verbose(1) << "ERROR: TesselStruct is empty!" << endl;
     522    eLog() << Verbose(1) << "TesselStruct is empty!" << endl;
    531523    return volume;
    532524  }
     
    756748  Log() << Verbose(1) << "Minimum volume of the convex envelope contained in a rectangular box is " << minimumvolume << " atomicmassunit/" << (IsAngstroem ? "angstrom" : "atomiclength") << "^3." << endl;
    757749  if (minimumvolume > cellvolume) {
    758     eLog() << Verbose(0) << "ERROR: the containing box already has a greater volume than the envisaged cell volume!" << endl;
     750    eLog() << Verbose(1) << "the containing box already has a greater volume than the envisaged cell volume!" << endl;
    759751    Log() << Verbose(0) << "Setting Box dimensions to minimum possible, the greatest diameters." << endl;
    760752    for (int i = 0; i < NDIM; i++)
     
    849841  for(int i=0;i<NDIM;i++) {
    850842    N[i] = (int) ceil(1./FillerDistance.x[i]);
    851     Log() << Verbose(0) << N[i];
     843    Log() << Verbose(1) << N[i];
    852844    if (i != NDIM-1)
    853       Log() << Verbose(0)<< ", ";
     845      Log() << Verbose(1)<< ", ";
    854846    else
    855       Log() << Verbose(0) << "." << endl;
     847      Log() << Verbose(1) << "." << endl;
    856848  }
    857849
     
    870862          // get linked cell list
    871863          if (TesselStruct[i] == NULL) {
    872             Log() << Verbose(1) << "ERROR: TesselStruct of " << (*ListRunner) << " is NULL. Didn't we pre-create it?" << endl;
     864            eLog() << Verbose(1) << "TesselStruct of " << (*ListRunner) << " is NULL. Didn't we pre-create it?" << endl;
    873865            FillIt = false;
    874866          } else {
     
    10151007      //Log() << Verbose(1) << "Line " << *baseline->second << " has " << baseline->second->triangles.size() << " triangles adjacent" << endl;
    10161008      if (baseline->second->triangles.size() != 2)
    1017         eLog() << Verbose(1) << "TESSELATION FINISHED WITH INVALID TRIANGLE COUNT!" << endl;
     1009        eLog() << Verbose(0) << "TESSELATION FINISHED WITH INVALID TRIANGLE COUNT!" << endl;
    10181010    }
    10191011
  • src/builder.cpp

    rf1ef60a r717e0c  
    9595  switch (choice) {
    9696    default:
    97       Log() << Verbose(0) << "Not a valid choice." << endl;
     97      eLog() << Verbose(2) << "Not a valid choice." << endl;
    9898      break;
    9999      case 'a': // absolute coordinates of atom
     
    109109        valid = true;
    110110        do {
    111           if (!valid) Log() << Verbose(0) << "Resulting position out of cell." << endl;
     111          if (!valid) eLog() << Verbose(2) << "Resulting position out of cell." << endl;
    112112          Log() << Verbose(0) << "Enter reference coordinates." << endl;
    113113          x.AskPosition(mol->cell_size, true);
     
    125125        valid = true;
    126126        do {
    127           if (!valid) Log() << Verbose(0) << "Resulting position out of cell." << endl;
     127          if (!valid) eLog() << Verbose(2) << "Resulting position out of cell." << endl;
    128128          second = mol->AskAtom("Enter atom number: ");
    129129          Log() << Verbose(0) << "Enter relative coordinates." << endl;
     
    142142        do {
    143143          if (!valid) {
    144             Log() << Verbose(0) << "Resulting coordinates out of cell - ";
    145             first->x.Output();
    146             Log() << Verbose(0) << endl;
     144            eLog() << Verbose(2) << "Resulting coordinates out of cell - " << first->x << endl;
    147145          }
    148146          Log() << Verbose(0) << "First, we need two atoms, the first atom is the central, while the second is the outer one." << endl;
     
    671669  Log() << Verbose(0) << "===============================================" << endl;
    672670  if (molecules->NumberOfActiveMolecules() > 1)
    673     Log() << Verbose(0) << "WARNING: There is more than one molecule active! Atoms will be added to each." << endl;
     671    eLog() << Verbose(2) << "There is more than one molecule active! Atoms will be added to each." << endl;
    674672  Log() << Verbose(0) << "INPUT: ";
    675673  cin >> choice;
     
    794792  Log() << Verbose(0) << "===============================================" << endl;
    795793  if (molecules->NumberOfActiveMolecules() > 1)
    796     Log() << Verbose(0) << "WARNING: There is more than one molecule active! Atoms will be added to each." << endl;
     794    eLog() << Verbose(2) << "There is more than one molecule active! Atoms will be added to each." << endl;
    797795  Log() << Verbose(0) << "INPUT: ";
    798796  cin >> choice;
     
    827825          }
    828826          if (count != j)
    829             Log() << Verbose(0) << "ERROR: AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;
     827            eLog() << Verbose(1) << "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;
    830828          x.Zero();
    831829          y.Zero();
     
    12501248
    12511249  if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
    1252     eLog() << Verbose(0) << "WARNING: config is found under different path then stated in config file::defaultpath!" << endl;
     1250    eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl;
    12531251  }
    12541252
     
    13541352
    13551353  if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
    1356     eLog() << Verbose(0) << "WARNING: config is found under different path then stated in config file::defaultpath!" << endl;
     1354    eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl;
    13571355  }
    13581356
     
    13871385  molecule *mol = NULL;
    13881386  string BondGraphFileName("");
     1387  int verbosity = 0;
    13891388  strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1);
    13901389
     
    14321431            Log() << Verbose(0) << "\t-T x1 x2 x3\tTranslate periodically all atoms by this vector (x1,x2,x3)." << endl;
    14331432            Log() << Verbose(0) << "\t-u rho\tsuspend in water solution and output necessary cell lengths, average density rho and repetition." << endl;
    1434             Log() << Verbose(0) << "\t-v/-V\t\tGives version information." << endl;
     1433            Log() << Verbose(0) << "\t-v\t\tsets verbosity (more is more)." << endl;
     1434            Log() << Verbose(0) << "\t-V\t\tGives version information." << endl;
    14351435            Log() << Verbose(0) << "Note: config files must not begin with '-' !" << endl;
    14361436            return (1);
    14371437            break;
    14381438          case 'v':
     1439            while (argv[argptr-1][verbosity+1] == 'v') {
     1440              verbosity++;
     1441            }
     1442            setVerbosity(verbosity);
     1443            Log() << Verbose(0) << "Setting verbosity to " << verbosity << "." << endl;
     1444            break;
    14391445          case 'V':
    14401446            Log() << Verbose(0) << argv[0] << " " << VERSIONSTRING << endl;
     
    18411847                  }
    18421848                } else {
    1843                   eLog() << Verbose(0) << "Removal failed due to missing atoms on molecule or wrong id." << endl;
     1849                  eLog() << Verbose(1) << "Removal failed due to missing atoms on molecule or wrong id." << endl;
    18441850                }
    18451851                argptr+=2;
     
    20022008              j = atoi(argv[argptr++]);
    20032009              if ((j<0) || (j>1)) {
    2004                 eLog() << Verbose(1) << "ERROR: Argument of '-m' should be either 0 for no-rotate or 1 for rotate." << endl;
     2010                eLog() << Verbose(1) << "Argument of '-m' should be either 0 for no-rotate or 1 for rotate." << endl;
    20052011                j = 0;
    20062012              }
     
    20642070//                  repetition[i] = atoi(argv[argptr++]);
    20652071//                  if (repetition[i] < 1)
    2066 //                    eLog() << Verbose(0) << "ERROR: repetition value must be greater 1!" << endl;
     2072//                    eLog() << Verbose(1) << "repetition value must be greater 1!" << endl;
    20672073//                  repetition[i] = 1;
    20682074//                }
     
    20832089                  Vector ** vectors;
    20842090                  if (faktor < 1) {
    2085                     eLog() << Verbose(0) << "ERROR: Repetition faktor mus be greater than 1!" << endl;
     2091                    eLog() << Verbose(1) << "Repetition factor mus be greater than 1!" << endl;
    20862092                    faktor = 1;
    20872093                  }
     
    21002106                    }
    21012107                    if (count != j)
    2102                       Log() << Verbose(0) << "ERROR: AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;
     2108                      eLog() << Verbose(1) << "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;
    21032109                    x.Zero();
    21042110                    y.Zero();
     
    21652171  int j;
    21662172
    2167   setVerbosity(2);
     2173  setVerbosity(0);
    21682174
    21692175  // =========================== PARSE COMMAND LINE OPTIONS ====================================
  • src/config.cpp

    rf1ef60a r717e0c  
    7272  file= new ifstream(filename);
    7373  if (file == NULL) {
    74     eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
     74    eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
    7575    return;
    7676  }
     
    8787  // allocate buffer's 1st dimension
    8888  if (buffer != NULL) {
    89     eLog() << Verbose(0) << "ERROR: FileBuffer->buffer is not NULL!" << endl;
     89    eLog() << Verbose(1) << "FileBuffer->buffer is not NULL!" << endl;
    9090    return;
    9191  } else
     
    653653{
    654654  if (FileBuffer != NULL) {
    655     eLog() << Verbose(1) << "WARNING: deleting present FileBuffer in PrepareFileBuffer()." << endl;
     655    eLog() << Verbose(2) << "deleting present FileBuffer in PrepareFileBuffer()." << endl;
    656656    delete(FileBuffer);
    657657  }
     
    847847  ifstream *file = new ifstream(filename);
    848848  if (file == NULL) {
    849     eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
     849    eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
    850850    return;
    851851  }
     
    10801080  ifstream *file = new ifstream(filename);
    10811081  if (file == NULL) {
    1082     eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
     1082    eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
    10831083    return;
    10841084  }
  • src/ellipsoid.cpp

    rf1ef60a r717e0c  
    241241    x = new Vector[PointsToPick];
    242242  } else {
    243     eLog() << Verbose(2) << "WARNING: Given pointer to vector array seems already allocated." << endl;
     243    eLog() << Verbose(2) << "Given pointer to vector array seems already allocated." << endl;
    244244  }
    245245
     
    341341    x = new Vector[PointsToPick];
    342342  } else {
    343     eLog() << Verbose(2) << "WARNING: Given pointer to vector array seems already allocated." << endl;
     343    eLog() << Verbose(2) << "Given pointer to vector array seems already allocated." << endl;
    344344  }
    345345
  • src/linkedcell.cpp

    rf1ef60a r717e0c  
    4747  Log() << Verbose(1) << "Begin of LinkedCell" << endl;
    4848  if (set->IsEmpty()) {
    49     eLog() << Verbose(0) << "ERROR: set contains no linked cell nodes!" << endl;
     49    eLog() << Verbose(1) << "set contains no linked cell nodes!" << endl;
    5050    return;
    5151  }
     
    7979  Log() << Verbose(2) << "Allocating cells ... ";
    8080  if (LC != NULL) {
    81     Log() << Verbose(1) << "ERROR: Linked Cell list is already allocated, I do nothing." << endl;
     81    eLog() << Verbose(1) << "Linked Cell list is already allocated, I do nothing." << endl;
    8282    return;
    8383  }
     
    122122  Log() << Verbose(1) << "Begin of LinkedCell" << endl;
    123123  if (set->empty()) {
    124     eLog() << Verbose(0) << "ERROR: set contains no linked cell nodes!" << endl;
     124    eLog() << Verbose(1) << "set contains no linked cell nodes!" << endl;
    125125    return;
    126126  }
     
    151151  Log() << Verbose(2) << "Allocating cells ... ";
    152152  if (LC != NULL) {
    153     Log() << Verbose(1) << "ERROR: Linked Cell list is already allocated, I do nothing." << endl;
     153    eLog() << Verbose(1) << "Linked Cell list is already allocated, I do nothing." << endl;
    154154    return;
    155155  }
     
    199199    status = status && ((n[i] >=0) && (n[i] < N[i]));
    200200  if (!status)
    201   eLog() << Verbose(0) << "ERROR: indices are out of bounds!" << endl;
     201  eLog() << Verbose(1) << "indices are out of bounds!" << endl;
    202202  return status;
    203203};
     
    260260    return status;
    261261  } else {
    262     eLog() << Verbose(1) << "ERROR: Node at " << *Walker << " is out of bounds." << endl;
     262    eLog() << Verbose(1) << "Node at " << *Walker << " is out of bounds." << endl;
    263263    return false;
    264264  }
  • src/memoryusageobserver.cpp

    rf1ef60a r717e0c  
    8888
    8989  if (current == memoryUsers.end()) {
    90     Log() << Verbose(0) << "WARNING: There is non-tracked memory to be freed. Pointer "
     90    eLog() << Verbose(2) << "There is non-tracked memory to be freed. Pointer "
    9191      << pointer << " is not registered by MemoryUsageObserver: ";
    9292    if (msg != NULL)
  • src/molecule.cpp

    rf1ef60a r717e0c  
    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--;
  • src/molecule_dynamics.cpp

    rf1ef60a r717e0c  
    428428            }
    429429            if (Potential > Params.PenaltyConstants[2]) {
    430               eLog() << Verbose(0) << "ERROR: The two-step permutation procedure did not maintain injectivity!" << endl;
     430              eLog() << Verbose(1) << "The two-step permutation procedure did not maintain injectivity!" << endl;
    431431              exit(255);
    432432            }
    433433            //Log() << Verbose(0) << endl;
    434434          } else {
    435             eLog() << Verbose(0) << "ERROR: " << *Runner << " was not the owner of " << *Sprinter << "!" << endl;
     435            eLog() << Verbose(1) << *Runner << " was not the owner of " << *Sprinter << "!" << endl;
    436436            exit(255);
    437437          }
  • src/molecule_fragmentation.cpp

    rf1ef60a r717e0c  
    441441    // transmorph graph keyset list into indexed KeySetList
    442442    if (GlobalKeySetList == NULL) {
    443       Log() << Verbose(1) << "ERROR: Given global key set list (graph) is NULL!" << endl;
     443      eLog() << Verbose(1) << "Given global key set list (graph) is NULL!" << endl;
    444444      return false;
    445445    }
     
    898898      }
    899899    } else {
    900       Log() << Verbose(0) << "ERROR: Son " << Runner->Name << " has father " << FatherOfRunner->Name << " but its entry in SonList is " << SonList[FatherOfRunner->nr] << "!" << endl;
     900      eLog() << Verbose(1) << "Son " << Runner->Name << " has father " << FatherOfRunner->Name << " but its entry in SonList is " << SonList[FatherOfRunner->nr] << "!" << endl;
    901901    }
    902902    if ((LonelyFlag) && (Leaf->AtomCount > 1)) {
     
    11331133        Log() << Verbose(0) << endl;
    11341134        //if (!CheckForConnectedSubgraph(FragmentSearch->FragmentSet))
    1135           //Log() << Verbose(0) << "ERROR: The found fragment is not a connected subgraph!" << endl;
     1135          //eLog() << Verbose(1) << "The found fragment is not a connected subgraph!" << endl;
    11361136        InsertFragmentIntoGraph(FragmentSearch);
    11371137      }
  • src/moleculelist.cpp

    rf1ef60a r717e0c  
    311311  Tesselation *TesselStruct = NULL;
    312312  if ((srcmol == NULL) || (mol == NULL)) {
    313     Log() << Verbose(1) << "ERROR: Either fixed or variable molecule is given as NULL." << endl;
     313    eLog() << Verbose(1) << "Either fixed or variable molecule is given as NULL." << endl;
    314314    return false;
    315315  }
     
    319319  FindNonConvexBorder(mol, TesselStruct, (const LinkedCell *&)LCList, 4., NULL);
    320320  if (TesselStruct == NULL) {
    321     Log() << Verbose(1) << "ERROR: Could not tesselate the fixed molecule." << endl;
     321    eLog() << Verbose(1) << "Could not tesselate the fixed molecule." << endl;
    322322    return false;
    323323  }
  • src/parser.cpp

    rf1ef60a r717e0c  
    226226    }
    227227  } else {
    228     eLog() << Verbose(0) << "ERROR: Matrix nr. " << MatrixNr << " has column and row count of (" << ColumnCounter[MatrixNr] << "," << RowCounter[MatrixNr] << "), could not allocate nor parse!" << endl;
     228    eLog() << Verbose(1) << "Matrix nr. " << MatrixNr << " has column and row count of (" << ColumnCounter[MatrixNr] << "," << RowCounter[MatrixNr] << "), could not allocate nor parse!" << endl;
    229229  }
    230230  input.close();
  • src/periodentafel.cpp

    rf1ef60a r717e0c  
    313313
    314314  if (!otherstatus)
    315     eLog() << Verbose(0) << "WARNING: Something went wrong while parsing the other databases!" << endl;
     315    eLog() << Verbose(2) << "Something went wrong while parsing the other databases!" << endl;
    316316
    317317  return status;
  • src/stackclass.hpp

    rf1ef60a r717e0c  
    7272    return true;
    7373  } else {
    74     eLog() << Verbose(0) << "ERROR: Stack is full, " << "Stack: CurrentLastEntry " << CurrentLastEntry<< "\tCurrentFirstEntry " << CurrentFirstEntry << "\tNextFreeField " << NextFreeField << "\tEntryCount " << EntryCount << "!" << endl;
     74    eLog() << Verbose(1) << "Stack is full, " << "Stack: CurrentLastEntry " << CurrentLastEntry<< "\tCurrentFirstEntry " << CurrentFirstEntry << "\tNextFreeField " << NextFreeField << "\tEntryCount " << EntryCount << "!" << endl;
    7575    return false;
    7676  }
     
    8787    Walker = StackList[CurrentFirstEntry];
    8888    if (Walker == NULL)
    89       eLog() << Verbose(0) << "ERROR: Stack's field is empty!" << endl;
     89      eLog() << Verbose(1) << "Stack's field is empty!" << endl;
    9090    StackList[CurrentFirstEntry] = NULL;
    9191    if (CurrentFirstEntry != CurrentLastEntry) { // hasn't last item been popped as well?
     
    9696    }
    9797  } else
    98     eLog() << Verbose(0) << "ERROR: Stack is empty!" << endl;
     98    eLog() << Verbose(1) << "Stack is empty!" << endl;
    9999  return Walker;
    100100};
     
    111111    StackList[CurrentLastEntry] = NULL;
    112112    if (Walker == NULL)
    113       eLog() << Verbose(0) << "ERROR: Stack's field is empty!" << endl;
     113      eLog() << Verbose(1) << "Stack's field is empty!" << endl;
    114114    NextFreeField = CurrentLastEntry;
    115115    if (CurrentLastEntry != CurrentFirstEntry)  // has there been more than one item on stack
    116116      CurrentLastEntry = (CurrentLastEntry + (EntryCount-1)) % EntryCount; // step back from current free field to last (modulo does not work in -1, thus go EntryCount-1 instead)
    117117  } else {
    118     eLog() << Verbose(0) << "ERROR: Stack is empty!" << endl;
     118    eLog() << Verbose(1) << "Stack is empty!" << endl;
    119119  }
    120120  return Walker;
     
    151151    } while (i!=NextFreeField);
    152152  else
    153     eLog() << Verbose(0) << "ERROR: Stack is already empty!" << endl;
     153    eLog() << Verbose(1) << "Stack is already empty!" << endl;
    154154  if (found) {
    155155    NextFreeField = CurrentLastEntry;
  • src/tesselation.cpp

    rf1ef60a r717e0c  
    4848  //Log() << Verbose(5) << "Erasing point nr. " << Nr << "." << endl;
    4949  if (!lines.empty())
    50     eLog() << Verbose(0) << "WARNING: Memory Leak! I " << *this << " am still connected to some lines." << endl;
     50    eLog() << Verbose(2) << "Memory Leak! I " << *this << " am still connected to some lines." << endl;
    5151  node = NULL;
    5252};
     
    153153  }
    154154  if (!triangles.empty())
    155     eLog() << Verbose(0) << "WARNING: Memory Leak! I " << *this << " am still connected to some triangles." << endl;
     155    eLog() << Verbose(2) << "Memory Leak! I " << *this << " am still connected to some triangles." << endl;
    156156};
    157157
     
    188188  // get the two triangles
    189189  if (triangles.size() != 2) {
    190     Log() << Verbose(1) << "ERROR: Baseline " << *this << " is connected to less than two triangles, Tesselation incomplete!" << endl;
     190    eLog() << Verbose(1) << "Baseline " << *this << " is connected to less than two triangles, Tesselation incomplete!" << endl;
    191191    return true;
    192192  }
     
    226226      i++;
    227227    } else {
    228       //Log() << Verbose(2) << "ERROR: I cannot find third node in triangle, something's wrong." << endl;
     228      //eLog() << Verbose(1) << "I cannot find third node in triangle, something's wrong." << endl;
    229229      return true;
    230230    }
     
    409409  } while (CrossPoint.NormSquared() < MYEPSILON);
    410410  if (i==3) {
    411     Log() << Verbose(1) << "ERROR: Could not find any cross points, something's utterly wrong here!" << endl;
     411    eLog() << Verbose(1) << "Could not find any cross points, something's utterly wrong here!" << endl;
    412412    exit(255);
    413413  }
     
    634634      runner->second = NULL;
    635635    } else
    636       eLog() << Verbose(1) << "ERROR: The triangle " << runner->first << " has already been free'd." << endl;
     636      eLog() << Verbose(1) << "The triangle " << runner->first << " has already been free'd." << endl;
    637637  }
    638638  Log() << Verbose(1) << "This envelope was written to file " << TriangleFilesWritten << " times(s)." << endl;
     
    11741174            if (NewLines[j]->IsConnectedTo(BLS[0])) {
    11751175              if (n>2) {
    1176                 Log() << Verbose(1) << "ERROR: " << BLS[0] << " connects to all of the new lines?!" << endl;
     1176                Log() << Verbose(1) << BLS[0] << " connects to all of the new lines?!" << endl;
    11771177                return false;
    11781178              } else
     
    11911191      }
    11921192    } else { // something is wrong with FindClosestTriangleToPoint!
    1193       Log() << Verbose(1) << "ERROR: The closest triangle did not produce an intersection!" << endl;
     1193      eLog() << Verbose(1) << "The closest triangle did not produce an intersection!" << endl;
    11941194      return false;
    11951195    }
     
    13791379      triangle->lines[i] = NULL;  // free'd or not: disconnect
    13801380    } else
    1381       eLog() << Verbose(0) << "ERROR: This line " << i << " has already been free'd." << endl;
     1381      eLog() << Verbose(1) << "This line " << i << " has already been free'd." << endl;
    13821382  }
    13831383
     
    14321432      line->endpoints[i] = NULL;  // free'd or not: disconnect
    14331433    } else
    1434       eLog() << Verbose(0) << "ERROR: Endpoint " << i << " has already been free'd." << endl;
     1434      eLog() << Verbose(1) << "Endpoint " << i << " has already been free'd." << endl;
    14351435  }
    14361436  if (!line->triangles.empty())
    1437     eLog() << Verbose(0) << "WARNING: Memory Leak! I " << *line << " am still connected to some triangles." << endl;
     1437    eLog() << Verbose(2) << "Memory Leak! I " << *line << " am still connected to some triangles." << endl;
    14381438
    14391439  if (LinesOnBoundary.erase(line->Nr))
     
    16041604          }
    16051605        } else {
    1606           eLog() << Verbose(0) << "ERROR: The current cell " << LC->n[0] << "," << LC->n[1] << "," << LC->n[2] << " is invalid!" << endl;
     1606          eLog() << Verbose(1) << "The current cell " << LC->n[0] << "," << LC->n[1] << "," << LC->n[2] << " is invalid!" << endl;
    16071607        }
    16081608      }
     
    17861786            if (fabs(OldSphereCenter.ScalarProduct(&SearchDirection)) > HULLEPSILON) {
    17871787              // rotated the wrong way!
    1788               eLog() << Verbose(0) << "ERROR: SearchDirection and RelativeOldSphereCenter are still not orthogonal!" << endl;
     1788              eLog() << Verbose(1) << "SearchDirection and RelativeOldSphereCenter are still not orthogonal!" << endl;
    17891789            }
    17901790
     
    19241924    if (fabs(OldSphereCenter.ScalarProduct(&SearchDirection)) > HULLEPSILON) {
    19251925      // rotated the wrong way!
    1926       eLog() << Verbose(0) << "ERROR: SearchDirection and RelativeOldSphereCenter are still not orthogonal!" << endl;
     1926      eLog() << Verbose(1) << "SearchDirection and RelativeOldSphereCenter are still not orthogonal!" << endl;
    19271927    }
    19281928
     
    19351935
    19361936  if (OptCandidates->begin() == OptCandidates->end()) {
    1937     eLog() << Verbose(0) << "WARNING: Could not find a suitable candidate." << endl;
     1937    eLog() << Verbose(2) << "Could not find a suitable candidate." << endl;
    19381938    return false;
    19391939  }
     
    19831983        //Log() << Verbose(1) << "We have "<< TrianglesOnBoundaryCount << " for line " << *BaseRay << "." << endl;
    19841984        } else {
    1985           Log() << Verbose(1) << "WARNING: This triangle consisting of ";
     1985          eLog() << Verbose(2) << "This triangle consisting of ";
    19861986          Log() << Verbose(0) << *(*it)->point << ", ";
    19871987          Log() << Verbose(0) << *BaseRay->endpoints[0]->node << " and ";
     
    20092009            (*it)->OtherOptCenter.Scale(-1.);
    20102010
    2011             Log() << Verbose(0) << "--> WARNING: Special new triangle with " << *BTS << " and normal vector " << BTS->NormalVector
    2012             << " for this triangle ... " << endl;
     2011            eLog() << Verbose(2) << "--> WARNING: Special new triangle with " << *BTS << " and normal vector " << BTS->NormalVector << " for this triangle ... " << endl;
    20132012            Log() << Verbose(1) << "We have "<< BaseRay->triangles.size() << " for line " << BaseRay << "." << endl;
    20142013          } else {
    2015             Log() << Verbose(1) << "WARNING: This triangle consisting of ";
    2016             Log() << Verbose(0) << *(*it)->point << ", ";
    2017             Log() << Verbose(0) << *BaseRay->endpoints[0]->node << " and ";
    2018             Log() << Verbose(0) << *BaseRay->endpoints[1]->node << " ";
    2019             Log() << Verbose(0) << "exists and is not added, as it does not seem helpful!" << endl;
     2014            eLog() << Verbose(2) << "This triangle consisting of " << *(*it)->point << ", " << *BaseRay->endpoints[0]->node << " and " << *BaseRay->endpoints[1]->node << " " << "exists and is not added, as it does not seem helpful!" << endl;
    20202015            result = false;
    20212016          }
     
    20332028    BaseRay = BLS[0];
    20342029    if ((BTS != NULL) && (BTS->NormalVector.NormSquared() < MYEPSILON)) {
    2035       Log() << Verbose(1) << "CRITICAL: Triangle " << *BTS << " has zero normal vector!" << endl;
     2030      eLog() << Verbose(1) << "Triangle " << *BTS << " has zero normal vector!" << endl;
    20362031      exit(255);
    20372032    }
     
    21742169    BaseLineNormal.Zero();
    21752170    if (Base->triangles.size() < 2) {
    2176       Log() << Verbose(2) << "ERROR: Less than two triangles are attached to this baseline!" << endl;
     2171      eLog() << Verbose(1) << "Less than two triangles are attached to this baseline!" << endl;
    21772172      return 0.;
    21782173    }
     
    22142209  BaseLineNormal.Zero();
    22152210  if (Base->triangles.size() < 2) {
    2216     Log() << Verbose(2) << "ERROR: Less than two triangles are attached to this baseline!" << endl;
     2211    eLog() << Verbose(1) << "Less than two triangles are attached to this baseline!" << endl;
    22172212    return NULL;
    22182213  }
     
    22502245  // check whether everything is in place to create new lines and triangles
    22512246  if (i<4) {
    2252     Log() << Verbose(1) << "ERROR: We have not gathered enough baselines!" << endl;
     2247    eLog() << Verbose(1) << "We have not gathered enough baselines!" << endl;
    22532248    return NULL;
    22542249  }
    22552250  for (int j=0;j<4;j++)
    22562251    if (OldLines[j] == NULL) {
    2257       Log() << Verbose(1) << "ERROR: We have not gathered enough baselines!" << endl;
     2252      eLog() << Verbose(1) << "We have not gathered enough baselines!" << endl;
    22582253      return NULL;
    22592254    }
    22602255  for (int j=0;j<2;j++)
    22612256    if (OldPoints[j] == NULL) {
    2262       Log() << Verbose(1) << "ERROR: We have not gathered enough endpoints!" << endl;
     2257      eLog() << Verbose(1) << "We have not gathered enough endpoints!" << endl;
    22632258      return NULL;
    22642259    }
     
    23362331      N[i] = LC->n[i];
    23372332  } else {
    2338     eLog() << Verbose(0) << "ERROR: Point " << *a << " is not found in cell " << LC->index << "." << endl;
     2333    eLog() << Verbose(1) << "Point " << *a << " is not found in cell " << LC->index << "." << endl;
    23392334    return;
    23402335  }
     
    24752470    // test whether old center is on the band's plane
    24762471    if (fabs(OldSphereCenter.ScalarProduct(&CirclePlaneNormal)) > HULLEPSILON) {
    2477       eLog() << Verbose(0) << "ERROR: Something's very wrong here: OldSphereCenter is not on the band's plane as desired by " << fabs(OldSphereCenter.ScalarProduct(&CirclePlaneNormal)) << "!" << endl;
     2472      eLog() << Verbose(1) << "Something's very wrong here: OldSphereCenter is not on the band's plane as desired by " << fabs(OldSphereCenter.ScalarProduct(&CirclePlaneNormal)) << "!" << endl;
    24782473      OldSphereCenter.ProjectOntoPlane(&CirclePlaneNormal);
    24792474    }
     
    24852480      //Log() << Verbose(2) << "INFO: SearchDirection is " << SearchDirection << "." << endl;
    24862481      if (fabs(OldSphereCenter.ScalarProduct(&SearchDirection)) > HULLEPSILON) {  // rotated the wrong way!
    2487         eLog() << Verbose(0) << "ERROR: SearchDirection and RelativeOldSphereCenter are not orthogonal!" << endl;
     2482        eLog() << Verbose(1) << "SearchDirection and RelativeOldSphereCenter are not orthogonal!" << endl;
    24882483      }
    24892484
     
    24942489        //Log() << Verbose(2) << "INFO: Center cell is " << N[0] << ", " << N[1] << ", " << N[2] << " with No. " << LC->index << "." << endl;
    24952490      } else {
    2496         eLog() << Verbose(0) << "ERROR: Vector " << CircleCenter << " is outside of LinkedCell's bounding box." << endl;
     2491        eLog() << Verbose(1) << "Vector " << CircleCenter << " is outside of LinkedCell's bounding box." << endl;
    24972492        return;
    24982493      }
     
    25992594          }
    26002595    } else {
    2601       eLog() << Verbose(2) << "ERROR: The projected center of the old sphere has radius " << radius << " instead of " << CircleRadius << "." << endl;
     2596      eLog() << Verbose(1) << "The projected center of the old sphere has radius " << radius << " instead of " << CircleRadius << "." << endl;
    26022597    }
    26032598  } else {
     
    26902685        triangles->unique();
    26912686      } else {
    2692         Log() << Verbose(1) << "ERROR: I cannot find a boundary point to the tessel point " << *trianglePoints[0] << "." << endl;
     2687        eLog() << Verbose(1) << "I cannot find a boundary point to the tessel point " << *trianglePoints[0] << "." << endl;
    26932688        return NULL;
    26942689      }
     
    27012696      for (int i=0;i<3;i++) {
    27022697        if (trianglePoints[i] == NULL) {
    2703           Log() << Verbose(1) << "ERROR: IsInnerPoint encounters serious error, point " << i << " not found." << endl;
     2698          eLog() << Verbose(1) << "IsInnerPoint encounters serious error, point " << i << " not found." << endl;
    27042699        }
    27052700        //Log() << Verbose(2) << "List of triangle points:" << endl;
     
    27202715 
    27212716  if ((triangles == NULL) || (triangles->empty())) {
    2722     Log() << Verbose(0) << "ERROR: There is no nearest triangle. Please check the tesselation structure.";
     2717    eLog() << Verbose(1) << "There is no nearest triangle. Please check the tesselation structure.";
    27232718    delete(triangles);
    27242719    return NULL;
     
    27542749      Log() << Verbose(2) << "Normal Vector of this back side is " << result->NormalVector << "." << endl;
    27552750      if (Center.ScalarProduct(&result->NormalVector) < 0) {
    2756         Log() << Verbose(1) << "ERROR: Front and back side yield NormalVector in wrong direction!" << endl;
     2751        eLog() << Verbose(1) << "Front and back side yield NormalVector in wrong direction!" << endl;
    27572752      }
    27582753    }
     
    28562851
    28572852  if (connectedPoints->size() == 0) { // if have not found any points
    2858     Log() << Verbose(1) << "ERROR: We have not found any connected points to " << *Point<< "." << endl;
     2853    eLog() << Verbose(1) << "We have not found any connected points to " << *Point<< "." << endl;
    28592854    return NULL;
    28602855  }
     
    29792974    ReferencePoint = PointRunner->second;
    29802975  } else {
    2981     Log() << Verbose(2) << "ERROR: GetPathOfConnectedPoints() could not find the BoundaryPoint belonging to " << *Point << "." << endl;
     2976    eLog() << Verbose(1) << "GetPathOfConnectedPoints() could not find the BoundaryPoint belonging to " << *Point << "." << endl;
    29822977    return NULL;
    29832978  }
     
    29962991      LineRunner = TouchedLine.find(runner->second);
    29972992      if (LineRunner == TouchedLine.end()) {
    2998         Log() << Verbose(2) << "ERROR: I could not find " << *runner->second << " in the touched list." << endl;
     2993        eLog() << Verbose(1) << "I could not find " << *runner->second << " in the touched list." << endl;
    29992994      } else if (!LineRunner->second) {
    30002995        LineRunner->second = true;
     
    30263021                }
    30273022              } else {
    3028                 Log() << Verbose(2) << "ERROR: I could not find " << *triangle << " in the touched list." << endl;
     3023                eLog() << Verbose(1) << "I could not find " << *triangle << " in the touched list." << endl;
    30293024                triangle = NULL;
    30303025              }
     
    30433038          LineRunner = TouchedLine.find(CurrentLine);
    30443039          if (LineRunner == TouchedLine.end())
    3045             Log() << Verbose(2) << "ERROR: I could not find " << *CurrentLine << " in the touched list." << endl;
     3040            eLog() << Verbose(1) << "I could not find " << *CurrentLine << " in the touched list." << endl;
    30463041          else
    30473042            LineRunner->second = true;
     
    30613056    }
    30623057  } else {
    3063     Log() << Verbose(1) << "ERROR: There are no lines attached to " << *ReferencePoint << "." << endl;
     3058    eLog() << Verbose(1) << "There are no lines attached to " << *ReferencePoint << "." << endl;
    30643059  }
    30653060
     
    31393134
    31403135  if (Point == NULL) {
    3141     Log() << Verbose(1) << "ERROR: Point given is NULL." << endl;
     3136    eLog() << Verbose(1) << "Point given is NULL." << endl;
    31423137  } else {
    31433138    // go through its lines and insert all triangles
     
    31713166
    31723167  if (point == NULL) {
    3173     Log() << Verbose(1) << "ERROR: Cannot remove the point " << point << ", it's NULL!" << endl;
     3168    eLog() << Verbose(1) << "Cannot remove the point " << point << ", it's NULL!" << endl;
    31743169    return 0.;
    31753170  } else
     
    31813176  // get list of connected points
    31823177  if (point->lines.empty()) {
    3183     Log() << Verbose(1) << "ERROR: Cannot remove the point " << *point << ", it's connected to no lines!" << endl;
     3178    eLog() << Verbose(1) << "Cannot remove the point " << *point << ", it's connected to no lines!" << endl;
    31843179    return 0.;
    31853180  }
     
    32813276        triangle = GetPresentTriangle(TriangleCandidates);
    32823277        if (triangle != NULL) {
    3283           Log() << Verbose(1) << "WARNING: New triangle already present, skipping!" << endl;
     3278          eLog() << Verbose(2) << "New triangle already present, skipping!" << endl;
    32843279          StartNode++;
    32853280          MiddleNode++;
     
    36193614    NearestBoundaryPoint = PointRunner->second;
    36203615  } else {
    3621     Log() << Verbose(1) << "ERROR: I cannot find the boundary point." << endl;
     3616    eLog() << Verbose(1) << "I cannot find the boundary point." << endl;
    36223617    return;
    36233618  }
  • src/tesselationhelpers.cpp

    rf1ef60a r717e0c  
    7777
    7878  if (fabs(m11) < MYEPSILON)
    79     eLog() << Verbose(0) << "ERROR: three points are colinear." << endl;
     79    eLog() << Verbose(1) << "three points are colinear." << endl;
    8080
    8181  center->x[0] =  0.5 * m12/ m11;
     
    8484
    8585  if (fabs(a.Distance(center) - RADIUS) > MYEPSILON)
    86     eLog() << Verbose(0) << "ERROR: The given center is further way by " << fabs(a.Distance(center) - RADIUS) << " from a than RADIUS." << endl;
     86    eLog() << Verbose(1) << "The given center is further way by " << fabs(a.Distance(center) - RADIUS) << " from a than RADIUS." << endl;
    8787
    8888  gsl_matrix_free(A);
     
    224224  // test whether new center is on the parameter circle's plane
    225225  if (fabs(helper.ScalarProduct(&CirclePlaneNormal)) > HULLEPSILON) {
    226     eLog() << Verbose(0) << "ERROR: Something's very wrong here: NewSphereCenter is not on the band's plane as desired by " <<fabs(helper.ScalarProduct(&CirclePlaneNormal))  << "!" << endl;
     226    eLog() << Verbose(1) << "Something's very wrong here: NewSphereCenter is not on the band's plane as desired by " <<fabs(helper.ScalarProduct(&CirclePlaneNormal))  << "!" << endl;
    227227    helper.ProjectOntoPlane(&CirclePlaneNormal);
    228228  }
     
    230230  // test whether the new center vector has length of CircleRadius
    231231  if (fabs(radius - CircleRadius) > HULLEPSILON)
    232     eLog() << Verbose(1) << "ERROR: The projected center of the new sphere has radius " << radius << " instead of " << CircleRadius << "." << endl;
     232    eLog() << Verbose(1) << "The projected center of the new sphere has radius " << radius << " instead of " << CircleRadius << "." << endl;
    233233  alpha = helper.Angle(&OldSphereCenter);
    234234  // make the angle unique by checking the halfplanes/search direction
     
    494494  Vector BaseLineVector, OrthogonalVector, helper;
    495495  if (candidate1->BaseLine != candidate2->BaseLine) {  // sanity check
    496     Log() << Verbose(0) << "ERROR: sortCandidates was called for two different baselines: " << candidate1->BaseLine << " and " << candidate2->BaseLine << "." << endl;
     496    eLog() << Verbose(1) << "sortCandidates was called for two different baselines: " << candidate1->BaseLine << " and " << candidate2->BaseLine << "." << endl;
    497497    //return false;
    498498    exit(1);
     
    577577          }
    578578        } else {
    579           eLog() << Verbose(0) << "ERROR: The current cell " << LC->n[0] << "," << LC->n[1] << ","
     579          eLog() << Verbose(1) << "The current cell " << LC->n[0] << "," << LC->n[1] << ","
    580580            << LC->n[2] << " is invalid!" << endl;
    581581        }
     
    633633          }
    634634        } else {
    635           eLog() << Verbose(0) << "ERROR: The current cell " << LC->n[0] << "," << LC->n[1] << ","
     635          eLog() << Verbose(1) << "The current cell " << LC->n[0] << "," << LC->n[1] << ","
    636636            << LC->n[2] << " is invalid!" << endl;
    637637        }
     
    741741    }
    742742  } else {
    743     eLog() << Verbose(0) << "ERROR: Given vrmlfile is " << vrmlfile << "." << endl;
     743    eLog() << Verbose(1) << "Given vrmlfile is " << vrmlfile << "." << endl;
    744744  }
    745745  delete(center);
     
    811811    *rasterfile << "9\n#  terminating special property\n";
    812812  } else {
    813     eLog() << Verbose(0) << "ERROR: Given rasterfile is " << rasterfile << "." << endl;
     813    eLog() << Verbose(1) << "Given rasterfile is " << rasterfile << "." << endl;
    814814  }
    815815  IncludeSphereinRaster3D(rasterfile, Tess, cloud);
  • src/vector.cpp

    rf1ef60a r717e0c  
    229229  factor = Direction.ScalarProduct(PlaneNormal);
    230230  if (factor < MYEPSILON) { // Uniqueness: line parallel to plane?
    231     Log() << Verbose(2) << "WARNING: Line is parallel to plane, no intersection." << endl;
     231    eLog() << Verbose(2) << "Line is parallel to plane, no intersection." << endl;
    232232    return false;
    233233  }
     
    253253    return true;
    254254  } else {
    255     Log() << Verbose(2) << "WARNING: Intersection point " << *this << " is not on plane." << endl;
     255    eLog() << Verbose(2) << "Intersection point " << *this << " is not on plane." << endl;
    256256    return false;
    257257  }
     
    747747      x[i] = C.x[i];
    748748  } else {
    749     eLog() << Verbose(0) << "ERROR: inverse of matrix does not exists: det A = " << detA << "." << endl;
     749    eLog() << Verbose(1) << "inverse of matrix does not exists: det A = " << detA << "." << endl;
    750750  }
    751751};
     
    799799  x2.SubtractVector(y2);
    800800  if ((fabs(x1.Norm()) < MYEPSILON) || (fabs(x2.Norm()) < MYEPSILON) || (fabs(x1.Angle(&x2)) < MYEPSILON)) {
    801     Log() << Verbose(4) << "WARNING: Given vectors are linear dependent." << endl;
     801    eLog() << Verbose(2) << "Given vectors are linear dependent." << endl;
    802802    return false;
    803803  }
     
    833833  Zero();
    834834  if ((fabs(x1.Norm()) < MYEPSILON) || (fabs(x2.Norm()) < MYEPSILON) || (fabs(x1.Angle(&x2)) < MYEPSILON)) {
    835     Log() << Verbose(4) << "WARNING: Given vectors are linear dependent." << endl;
     835    eLog() << Verbose(2) << "Given vectors are linear dependent." << endl;
    836836    return false;
    837837  }
Note: See TracChangeset for help on using the changeset viewer.