mirror of
https://github.com/NGSolve/netgen.git
synced 2025-06-07 18:57:50 +05:00
fix warnings
This commit is contained in:
parent
5025ac4022
commit
16cc8cd73f
@ -63,7 +63,7 @@ void WriteFluentFormat (const Mesh & mesh,
|
||||
outfile << "(0 \"Faces:\")" << endl;
|
||||
|
||||
Element2d face, face2;
|
||||
int i2, j2;
|
||||
int /* i2, */ j2;
|
||||
NgArray<INDEX_3> surfaceelp;
|
||||
NgArray<int> surfaceeli;
|
||||
Array<ElementIndex> locels;
|
||||
@ -105,8 +105,8 @@ void WriteFluentFormat (const Mesh & mesh,
|
||||
box.IncreaseRel(1e-6);
|
||||
|
||||
mesh.GetIntersectingVolEls(box.PMin(),box.PMax(),locels);
|
||||
int nel = locels.Size();
|
||||
int locind;
|
||||
// int nel = locels.Size();
|
||||
// int locind;
|
||||
|
||||
//cout << "nel=" << nel << endl;
|
||||
|
||||
|
@ -633,7 +633,7 @@ namespace netgen
|
||||
s[0] = pm0.Last();
|
||||
s[1] = pm1.Last();
|
||||
s[2] = PointIndex::INVALID;
|
||||
auto pair = s[0] < s[1] ? make_pair(s[0], s[1]) : make_pair(s[1], s[0]);
|
||||
// auto pair = s[0] < s[1] ? make_pair(s[0], s[1]) : make_pair(s[1], s[0]);
|
||||
s.edgenr = new_edge_nr;
|
||||
s.epgeominfo[0].edgenr = -1;
|
||||
s.epgeominfo[1].edgenr = -1;
|
||||
|
@ -797,11 +797,14 @@ double MeshOptimize3d :: SwapImproveEdge (
|
||||
int nsuround = hasbothpoints.Size();
|
||||
int mattyp = mesh[hasbothpoints[0]].GetIndex();
|
||||
|
||||
/*
|
||||
// unused ?
|
||||
auto fix_orientation = [&] (Element & el) {
|
||||
if (WrongOrientation (mesh.Points(), el))
|
||||
el.Invert();
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
auto El = [&] ( PointIndex pi0, PointIndex pi1, PointIndex pi2, PointIndex pi3) -> Element {
|
||||
Element el(TET);
|
||||
el[0] = pi0;
|
||||
|
@ -2942,7 +2942,10 @@ namespace netgen
|
||||
ost << "Identifications:" << endl;
|
||||
ost << "pairs: " << endl << identifiedpoints << endl;
|
||||
// ost << "pairs and nr: " << endl << identifiedpoints_nr << endl;
|
||||
#pragma message( "Can't ostream a tuple " __FILE__ )
|
||||
ost << "pairs and nr: " << endl;
|
||||
for (auto [key,val] : identifiedpoints_nr)
|
||||
ost << get<0>(key) << "," << get<1>(key) << ": " << val << endl;
|
||||
|
||||
ost << "table: " << endl << idpoints_table << endl;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user