redo second order-refinement after uniform refinement

This commit is contained in:
Christoph Lehrenfeld 2010-10-17 10:44:39 +00:00
parent 13f4f8d202
commit f99db8c784
2 changed files with 10 additions and 0 deletions

View File

@ -302,6 +302,12 @@ namespace netgen
Swap (pnum[1], pnum[2]); Swap (pnum[1], pnum[2]);
break; break;
} }
case TRIG6:
{
Swap (pnum[1], pnum[2]);
Swap (pnum[4], pnum[5]);
break;
}
case QUAD: case QUAD:
{ {
Swap (pnum[0], pnum[3]); Swap (pnum[0], pnum[3]);

View File

@ -1802,6 +1802,10 @@ namespace netgen
ng_geometry -> GetRefinement().Refine(*mesh); ng_geometry -> GetRefinement().Refine(*mesh);
} }
//redo second order refinement if desired
if (mparam.secondorder)
const_cast<Refinement&> (ng_geometry->GetRefinement()).MakeSecondOrder(*mesh);
return TCL_OK; return TCL_OK;
} }