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/tesselationhelpers.cpp

    r09d3b8 r418117a  
    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);
Note: See TracChangeset for help on using the changeset viewer.