mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-06 21:37:28 +05:00
some fixes
This commit is contained in:
parent
ee833ff362
commit
a0326d490d
@ -58,9 +58,8 @@ void MeshOptimize3d :: CombineImprove (Mesh & mesh,
|
|||||||
|
|
||||||
for (ElementIndex ei = 0; ei < ne; ei++)
|
for (ElementIndex ei = 0; ei < ne; ei++)
|
||||||
if (!mesh[ei].IsDeleted())
|
if (!mesh[ei].IsDeleted())
|
||||||
if(!(mesh.GetDimension()==3 && mp.only3D_domain_nr && mp.only3D_domain_nr != mesh.VolumeElement(ei).GetIndex()))
|
for (int j = 0; j < mesh[ei].GetNP(); j++)
|
||||||
for (int j = 0; j < mesh[ei].GetNP(); j++)
|
elementsonnode.Add (mesh[ei][j], ei);
|
||||||
elementsonnode.Add (mesh[ei][j], ei);
|
|
||||||
|
|
||||||
INDEX_2_HASHTABLE<int> edgetested (np+1);
|
INDEX_2_HASHTABLE<int> edgetested (np+1);
|
||||||
|
|
||||||
@ -314,6 +313,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
|||||||
badmax = 0;
|
badmax = 0;
|
||||||
for (ei = 0; ei < ne; ei++)
|
for (ei = 0; ei < ne; ei++)
|
||||||
{
|
{
|
||||||
|
if(mesh.GetDimension()==3 && mp.only3D_domain_nr && mp.only3D_domain_nr != mesh.VolumeElement(ei).GetIndex())
|
||||||
|
continue;
|
||||||
elerrs[ei] = CalcBad (mesh.Points(), mesh[ei], 0);
|
elerrs[ei] = CalcBad (mesh.Points(), mesh[ei], 0);
|
||||||
bad1 += elerrs[ei];
|
bad1 += elerrs[ei];
|
||||||
if (elerrs[ei] > badmax) badmax = elerrs[ei];
|
if (elerrs[ei] > badmax) badmax = elerrs[ei];
|
||||||
@ -345,12 +346,12 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
|||||||
int cntill = 0;
|
int cntill = 0;
|
||||||
for (ei = 0; ei < ne; ei++)
|
for (ei = 0; ei < ne; ei++)
|
||||||
{
|
{
|
||||||
// if (!LegalTet (volelements.Get(i)))
|
// if (!LegalTet (volelements.Get(i)))
|
||||||
if (mesh[ei].flags.illegal)
|
if (mesh[ei].flags.illegal)
|
||||||
{
|
{
|
||||||
cntill++;
|
cntill++;
|
||||||
illegaltet.Set (ei+1);
|
illegaltet.Set (ei+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// (*mycout) << cntill << " illegal tets" << endl;
|
// (*mycout) << cntill << " illegal tets" << endl;
|
||||||
}
|
}
|
||||||
@ -358,6 +359,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
|||||||
|
|
||||||
for (ei = 0; ei < ne; ei++)
|
for (ei = 0; ei < ne; ei++)
|
||||||
{
|
{
|
||||||
|
if(mesh.GetDimension()==3 && mp.only3D_domain_nr && mp.only3D_domain_nr != mesh.VolumeElement(ei).GetIndex())
|
||||||
|
continue;
|
||||||
if (multithread.terminate)
|
if (multithread.terminate)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user