diff --git a/libsrc/csg/algprim.cpp b/libsrc/csg/algprim.cpp index 5e2b7fd3..4636453b 100644 --- a/libsrc/csg/algprim.cpp +++ b/libsrc/csg/algprim.cpp @@ -1599,7 +1599,7 @@ void EllipticCone :: CalcData () c1 = pow(va*nvl,2) + ellipt2*pow(va*nvs,2) - t1*t1; double lvltop = vlr*lvl; - double minlvl = (lvl < lvltop) ? lvl : lvltop; + // double minlvl = (lvl < lvltop) ? lvl : lvltop; double maxlvl = max2( lvl,lvltop); cxx /= maxlvl; cyy /= maxlvl; czz /= maxlvl; cxy /= maxlvl; cxz /= maxlvl; cyz /= maxlvl; diff --git a/libsrc/csg/identify.cpp b/libsrc/csg/identify.cpp index 0d258afe..2a4da95b 100644 --- a/libsrc/csg/identify.cpp +++ b/libsrc/csg/identify.cpp @@ -1255,7 +1255,7 @@ BuildSurfaceElements (Array & segs, Vec<3> ns = surf->GetNormalVector (mesh[s1[0]]); Vec<3> t1 = mesh[s1[1]] - mesh[s1[0]]; - Vec<3> t2 = mesh[s2[1]] - mesh[s2[0]]; + // Vec<3> t2 = mesh[s2[1]] - mesh[s2[0]]; Vec<3> nst1 = Cross(t1, ns); // Vec<3> nst2 = Cross(t2, ns); Vec<3> dvec = Center(mesh[s1[0]], mesh[s1[1]])-Center(mesh[s2[0]], mesh[s2[1]]); diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index ae5843fa..49a67563 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -2659,7 +2659,7 @@ namespace netgen static int timer2 = NgProfiler::CreateTimer ("Bisect 2"); static int timer2a = NgProfiler::CreateTimer ("Bisect 2a"); static int timer2b = NgProfiler::CreateTimer ("Bisect 2b"); - static int timer2c = NgProfiler::CreateTimer ("Bisect 2c"); + // static int timer2c = NgProfiler::CreateTimer ("Bisect 2c"); static int timer3 = NgProfiler::CreateTimer ("Bisect 3"); static int timer3a = NgProfiler::CreateTimer ("Bisect 3a"); static int timer3b = NgProfiler::CreateTimer ("Bisect 3b"); diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index 34818495..709c25e9 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -3563,7 +3563,7 @@ namespace netgen x + y +(z), (1-x)+ y +(z), }; - int ii = 8; + // int ii = 8; const ELEMENT_EDGE * edges = MeshTopology::GetEdges1 (HEX); for (int i = 0; i < 8; i++) diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 75f761b4..c5276da7 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -208,11 +208,11 @@ namespace netgen int cntsteps = 0; if (mesh3d.GetNOpenElements()) - do - { + do + { if (multithread.terminate) - break; - + break; + mesh3d.FindOpenElements(k); PrintMessage (5, mesh3d.GetNOpenElements(), " open faces"); cntsteps++; @@ -248,10 +248,10 @@ namespace netgen mp.giveuptol = 15 + 10 * cntsteps; mp.sloppy = 5; meshing.GenerateMesh (mesh3d, mp); - + for (ElementIndex ei = oldne; ei < mesh3d.GetNE(); ei++) mesh3d[ei].SetIndex (k); - + mesh3d.CalcSurfacesOfNode(); mesh3d.FindOpenElements(k); @@ -288,17 +288,17 @@ namespace netgen mesh3d.FindOpenElements(k); } else - { + { meshed = 1; PrintMessage (1, "Success !"); - } - } - while (!meshed); - - PrintMessage (1, mesh3d.GetNP(), " points, ", - mesh3d.GetNE(), " elements"); - } - + } + } + while (!meshed); + + PrintMessage (1, mesh3d.GetNP(), " points, ", + mesh3d.GetNE(), " elements"); + } + mp.maxh = globmaxh; MeshQuality3d (mesh3d); diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 5fab1c5d..fb5e30d9 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -105,8 +105,8 @@ namespace netgen surfnr2(other.surfnr2), epgeominfo(), meshdocval(other.meshdocval), - hp_elnr(other.hp_elnr), - is_curved(other.is_curved) + is_curved(other.is_curved), + hp_elnr(other.hp_elnr) { for (int j = 0; j < 3; j++) pnums[j] = other.pnums[j]; diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index 625af673..794ecd0d 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -159,7 +159,7 @@ namespace netgen else { // quad - int facenum; + // int facenum; INDEX_4 face4(el[elfaces[j][0]], el[elfaces[j][1]], el[elfaces[j][2]], el[elfaces[j][3]]); @@ -224,7 +224,7 @@ namespace netgen { // triangle - int facenum; + // int facenum; int facedir; INDEX_4 face(el.PNum(elfaces[0][0]), @@ -273,7 +273,7 @@ namespace netgen { // quad - int facenum; + // int facenum; int facedir; INDEX_4 face4(el.PNum(elfaces[0][0]), @@ -1646,7 +1646,7 @@ namespace netgen else { // quad - int facenum; + // int facenum; INDEX_4 face4(el[elfaces[j][0]], el[elfaces[j][1]], el[elfaces[j][2]], el[elfaces[j][3]]); @@ -1713,7 +1713,7 @@ namespace netgen else { // quad - int facenum; + // int facenum; INDEX_4 face4(el[elfaces[j][0]], el[elfaces[j][1]], el[elfaces[j][2]], el[elfaces[j][3]]); diff --git a/libsrc/stlgeom/stlgeomchart.cpp b/libsrc/stlgeom/stlgeomchart.cpp index 68deebae..81158d3a 100644 --- a/libsrc/stlgeom/stlgeomchart.cpp +++ b/libsrc/stlgeom/stlgeomchart.cpp @@ -19,7 +19,7 @@ int chartdebug = 0; void STLGeometry :: MakeAtlas(Mesh & mesh) { - int timer1 = NgProfiler::CreateTimer ("makeatlas"); + // int timer1 = NgProfiler::CreateTimer ("makeatlas"); /* int timerb = NgProfiler::CreateTimer ("makeatlas - begin"); int timere = NgProfiler::CreateTimer ("makeatlas - end");