remove warning output if intersect. triangles in different layers

This commit is contained in:
Christopher Lackner 2020-10-23 12:05:30 +02:00
parent 832485e41a
commit 7f6996aa5d

View File

@ -3903,7 +3903,7 @@ namespace netgen
(*this)[tri[0]].GetLayer() != (*this)[tri[2]].GetLayer()) (*this)[tri[0]].GetLayer() != (*this)[tri[2]].GetLayer())
{ {
incons_layers = 1; incons_layers = 1;
cout << "inconsistent layers in triangle" << endl; // cout << "inconsistent layers in triangle" << endl;
} }
const netgen::Point<3> *trip1[3], *trip2[3]; const netgen::Point<3> *trip1[3], *trip2[3];
@ -3917,6 +3917,8 @@ namespace netgen
{ {
overlap = 1; overlap = 1;
lock_guard<std::mutex> guard(m); lock_guard<std::mutex> guard(m);
if(!incons_layers)
{
PrintWarning ("Intersecting elements " PrintWarning ("Intersecting elements "
,int(sei), " and ", int(sej)); ,int(sei), " and ", int(sej));
@ -3927,6 +3929,7 @@ namespace netgen
cout << "el2 = " << tri2 << endl; cout << "el2 = " << tri2 << endl;
cout << "layer1 = " << (*this)[tri[0]].GetLayer() << endl; cout << "layer1 = " << (*this)[tri[0]].GetLayer() << endl;
cout << "layer2 = " << (*this)[tri2[0]].GetLayer() << endl; cout << "layer2 = " << (*this)[tri2[0]].GetLayer() << endl;
}
for (int k = 1; k <= 3; k++) for (int k = 1; k <= 3; k++)
(*testout) << tri.PNum(k) << " "; (*testout) << tri.PNum(k) << " ";