diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index c1bf9592..739f6406 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -302,6 +302,12 @@ namespace netgen Swap (pnum[1], pnum[2]); break; } + case TRIG6: + { + Swap (pnum[1], pnum[2]); + Swap (pnum[4], pnum[5]); + break; + } case QUAD: { Swap (pnum[0], pnum[3]); diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index be4f5c45..82d0f7f0 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1802,6 +1802,10 @@ namespace netgen ng_geometry -> GetRefinement().Refine(*mesh); } +//redo second order refinement if desired + if (mparam.secondorder) + const_cast (ng_geometry->GetRefinement()).MakeSecondOrder(*mesh); + return TCL_OK; }