some fixes

This commit is contained in:
Christopher Lackner 2016-12-05 13:15:06 +01:00
parent ee833ff362
commit a0326d490d

View File

@ -58,7 +58,6 @@ void MeshOptimize3d :: CombineImprove (Mesh & mesh,
for (ElementIndex ei = 0; ei < ne; ei++)
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++)
elementsonnode.Add (mesh[ei][j], ei);
@ -314,6 +313,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
badmax = 0;
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);
bad1 += elerrs[ei];
if (elerrs[ei] > badmax) badmax = elerrs[ei];
@ -358,6 +359,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
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)
break;