Ignore:
Timestamp:
Apr 4, 2012, 11:30:11 AM (13 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:
03a589
Parents:
2a3124
git-author:
Frederik Heber <heber@…> (03/13/12 19:35:15)
git-committer:
Frederik Heber <heber@…> (04/04/12 11:30:11)
Message:

VERBOSE: Subsequent change in verbosity levels of many tesselation functions after Info removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tesselation/BoundaryPolygonSet.cpp

    r2a3124 rce7bfd  
    4444  Nr(-1)
    4545{
    46   Info FunctionInfo(__func__);
     46  //Info FunctionInfo(__func__);
    4747}
    4848;
     
    5454BoundaryPolygonSet::~BoundaryPolygonSet()
    5555{
    56   Info FunctionInfo(__func__);
     56  //Info FunctionInfo(__func__);
    5757  endpoints.clear();
    58   LOG(1, "Erasing polygon Nr." << Nr << " itself.");
     58  LOG(5, "DEBUG: Erasing polygon Nr." << Nr << " itself.");
    5959}
    6060;
     
    6767Vector * BoundaryPolygonSet::GetNormalVector(const Vector &OtherVector) const
    6868{
    69   Info FunctionInfo(__func__);
     69  //Info FunctionInfo(__func__);
    7070  // get normal vector
    7171  Vector TemporaryNormal;
     
    9797  if (TotalNormal->ScalarProduct(OtherVector) > 0.)
    9898    TotalNormal->Scale(-1.);
    99   LOG(1, "Normal Vector is " << *TotalNormal << ".");
     99  LOG(4, "DEBUG: Normal Vector is " << *TotalNormal << ".");
    100100
    101101  return TotalNormal;
     
    109109void BoundaryPolygonSet::GetCenter(Vector * const center) const
    110110{
    111   Info FunctionInfo(__func__);
     111  //Info FunctionInfo(__func__);
    112112  center->Zero();
    113113  int counter = 0;
     
    117117  }
    118118  center->Scale(1. / (double) counter);
    119   LOG(1, "Center is at " << *center << ".");
     119  LOG(4, "DEBUG: Center of BoundaryPolygonSet is at " << *center << ".");
    120120}
    121121
     
    126126bool BoundaryPolygonSet::ContainsBoundaryTriangle(const BoundaryTriangleSet * const triangle) const
    127127{
    128   Info FunctionInfo(__func__);
     128  //Info FunctionInfo(__func__);
    129129  return ContainsPresentTupel(triangle->endpoints, 3);
    130130}
     
    137137bool BoundaryPolygonSet::ContainsBoundaryLine(const BoundaryLineSet * const line) const
    138138{
    139   Info FunctionInfo(__func__);
     139  //Info FunctionInfo(__func__);
    140140  return ContainsPresentTupel(line->endpoints, 2);
    141141}
     
    148148bool BoundaryPolygonSet::ContainsBoundaryPoint(const BoundaryPointSet * const point) const
    149149{
    150   Info FunctionInfo(__func__);
     150  //Info FunctionInfo(__func__);
    151151  for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++) {
    152     LOG(0, "Checking against " << **Runner);
    153152    if (point == (*Runner)) {
    154       LOG(0, " Contained.");
     153      LOG(4, "DEBUG: Checking against " << **Runner << ": Contained.");
    155154      return true;
    156155    }
    157156  }
    158   LOG(0, " Not contained.");
    159157  return false;
    160158}
     
    167165bool BoundaryPolygonSet::ContainsBoundaryPoint(const TesselPoint * const point) const
    168166{
    169   Info FunctionInfo(__func__);
     167  //Info FunctionInfo(__func__);
    170168  for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++)
    171169    if (point == (*Runner)->node) {
    172       LOG(0, " Contained.");
     170      LOG(4, "DEBUG: Checking against " << **Runner << ": Contained.");
    173171      return true;
    174172    }
    175   LOG(0, " Not contained.");
    176173  return false;
    177174}
     
    185182bool BoundaryPolygonSet::ContainsPresentTupel(const BoundaryPointSet * const * Points, const int dim) const
    186183{
    187   Info FunctionInfo(__func__);
     184  //Info FunctionInfo(__func__);
    188185  int counter = 0;
    189   LOG(1, "Polygon is " << *this);
     186  LOG(5, "DEBUG Polygon is " << *this);
    190187  for (int i = 0; i < dim; i++) {
    191     LOG(1, " Testing endpoint " << *Points[i]);
     188    LOG(5, "DEBUG: Testing endpoint " << *Points[i]);
    192189    if (ContainsBoundaryPoint(Points[i])) {
    193190      counter++;
     
    208205bool BoundaryPolygonSet::ContainsPresentTupel(const PointSet &endpoints) const
    209206{
    210   Info FunctionInfo(__func__);
     207  //Info FunctionInfo(__func__);
    211208  size_t counter = 0;
    212   LOG(1, "Polygon is " << *this);
     209  LOG(5, "DEBUG: Polygon is " << *this);
    213210  for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++) {
    214     LOG(1, " Testing endpoint " << **Runner);
     211    LOG(5, "DEBUG: Testing endpoint " << **Runner);
    215212    if (ContainsBoundaryPoint(*Runner))
    216213      counter++;
     
    239236TriangleSet * BoundaryPolygonSet::GetAllContainedTrianglesFromEndpoints() const
    240237{
    241   Info FunctionInfo(__func__);
     238  //Info FunctionInfo(__func__);
    242239  pair<TriangleSet::iterator, bool> Tester;
    243240  TriangleSet *triangles = new TriangleSet;
     
    250247          Tester = triangles->insert(Sprinter->second);
    251248          if (Tester.second)
    252             LOG(0, "Adding triangle " << *(Sprinter->second));
     249            LOG(4, "DEBUG: Adding triangle " << *(Sprinter->second));
    253250        }
    254251      }
    255252
    256   LOG(1, "The Polygon of " << endpoints.size() << " endpoints has " << triangles->size() << " unique triangles in total.");
     253  LOG(3, "DEBUG: The Polygon of " << endpoints.size() << " endpoints has " << triangles->size() << " unique triangles in total.");
    257254  return triangles;
    258255}
     
    265262bool BoundaryPolygonSet::FillPolygonFromTrianglesOfLine(const BoundaryLineSet * const line)
    266263{
    267   Info FunctionInfo(__func__);
     264  //Info FunctionInfo(__func__);
    268265  pair<PointSet::iterator, bool> Tester;
    269266  if (line == NULL)
    270267    return false;
    271   LOG(1, "Filling polygon from line " << *line);
     268  LOG(3, "DEBUG: Filling polygon from line " << *line);
    272269  for (TriangleMap::const_iterator Runner = line->triangles.begin(); Runner != line->triangles.end(); Runner++) {
    273270    for (int i = 0; i < 3; i++) {
    274271      Tester = endpoints.insert((Runner->second)->endpoints[i]);
    275272      if (Tester.second)
    276         LOG(1, "  Inserting endpoint " << *((Runner->second)->endpoints[i]));
     273        LOG(4, "DEBUG:   Inserting endpoint " << *((Runner->second)->endpoints[i]));
    277274    }
    278275  }
Note: See TracChangeset for help on using the changeset viewer.