Reduce sizeof(MeshPoint) from 48 to 40 bytes

This commit is contained in:
Matthias Hochsteger 2021-06-10 10:15:55 +02:00
parent 3f93ccd3bd
commit 8df49eee2a

View File

@ -49,7 +49,7 @@ namespace netgen
#define ELEMENT2D_MAXPOINTS 8 #define ELEMENT2D_MAXPOINTS 8
enum POINTTYPE { FIXEDPOINT = 1, EDGEPOINT = 2, SURFACEPOINT = 3, INNERPOINT = 4 }; enum POINTTYPE : unsigned char { FIXEDPOINT = 1, EDGEPOINT = 2, SURFACEPOINT = 3, INNERPOINT = 4 };
enum ELEMENTTYPE { FREEELEMENT, FIXEDELEMENT }; enum ELEMENTTYPE { FREEELEMENT, FIXEDELEMENT };
enum OPTIMIZEGOAL { OPT_QUALITY, OPT_CONFORM, OPT_REST, OPT_WORSTCASE, OPT_LEGAL }; enum OPTIMIZEGOAL { OPT_QUALITY, OPT_CONFORM, OPT_REST, OPT_WORSTCASE, OPT_LEGAL };
@ -336,8 +336,8 @@ namespace netgen
*/ */
class MeshPoint : public Point<3> class MeshPoint : public Point<3>
{ {
int layer;
double singular; // singular factor for hp-refinement double singular; // singular factor for hp-refinement
int layer;
POINTTYPE type; POINTTYPE type;