From a2a2da13dc9aef78a2967a91a72c3e42eab0f8e9 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 19 Oct 2020 19:30:12 +0200 Subject: [PATCH] debug messages in hp refinement --- libsrc/meshing/hprefinement.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libsrc/meshing/hprefinement.cpp b/libsrc/meshing/hprefinement.cpp index b7507e33..d27f7a29 100644 --- a/libsrc/meshing/hprefinement.cpp +++ b/libsrc/meshing/hprefinement.cpp @@ -626,7 +626,7 @@ namespace netgen // prepare new points fac1 = max(0.001,min(0.33,fac1)); - cout << " in HP-REFINEMENT with fac1 " << fac1 << endl; + PrintMessage(3, " in HP-REFINEMENT with fac1 ", fac1); *testout << " in HP-REFINEMENT with fac1 " << fac1 << endl; @@ -1283,7 +1283,7 @@ namespace netgen // cout << nwrong << " wrong prisms, " << nright << " right prisms" << endl; } - cout << nwrong << " wrong prisms, " << nright << " right prisms" << endl; + PrintMessage(3, nwrong, " wrong prisms, ", nright, " right prisms"); NgArray hpts(mesh.GetNP()); @@ -1338,7 +1338,7 @@ namespace netgen sing = true; // iterate at least once while(sing) { - cout << " Start new hp-refinement: step " << act_ref << endl; + PrintMessage(3, " Start new hp-refinement: step ", act_ref); DoRefinement (mesh, hpelements, ref, fac1); DoRefineDummies (mesh, hpelements, ref); @@ -1435,16 +1435,16 @@ namespace netgen int(Get_HPRef_Struct (hpel.type) -> geom)); } } - cout << " Start with Update Topology " << endl; + PrintMessage(5, " Start with Update Topology "); mesh.UpdateTopology(); - cout << " Mesh Update Topology done " << endl; + PrintMessage(5, " Mesh Update Topology done "); act_ref++; sing = ClassifyHPElements(mesh,hpelements, act_ref, levels); } - cout << " HP-Refinement done with " << --act_ref << " refinement steps." << endl; + PrintMessage(3, " HP-Refinement done with ", --act_ref, " refinement steps."); if(act_ref>=1) { @@ -1813,7 +1813,7 @@ bool CheckSingularities(Mesh & mesh, INDEX_2_HASHTABLE & edges, INDEX_2_HAS } if (!sing) - cout << "PrepareElements no more to do for actual refinement " << act_ref << endl; + PrintMessage(3, "PrepareElements no more to do for actual refinement ", act_ref); return(sing); } @@ -1960,8 +1960,8 @@ bool CheckSingularities(Mesh & mesh, INDEX_2_HASHTABLE & edges, INDEX_2_HAS } - cout << "undefined elements update classification: " << cnt_undef << endl; - cout << "non-implemented in update classification: " << cnt_nonimplement << endl; + PrintMessage(3, "undefined elements update classification: ", cnt_undef); + PrintMessage(3, "non-implemented in update classification: ", cnt_nonimplement); for (int i = 0; i < misses.Size(); i++) if (misses[i])