diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index dba48a4d..c4326b35 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -906,7 +906,7 @@ namespace netgen el.SetIndex(hi); infile >> nep; el.SetNP(nep); - + el.SetCurved (nep != 4); for (int j = 0; j < nep; j++) infile >> (int&)(el[j]); diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 120efffc..2cc74fad 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -993,7 +993,7 @@ namespace netgen default: cerr << "Element::Element: unknown element with " << np << " points" << endl; } orderx = ordery = orderz = 1; - is_curved = false; + is_curved = typ != TET; // false; } void Element :: SetOrder (const int aorder) @@ -1031,7 +1031,7 @@ namespace netgen flags.deleted = 0; flags.fixed = 0; orderx = ordery = orderz = 1; - is_curved = false; + is_curved = typ != TET; // false; }