switch( myGeometry )
{
case NORM_SEG2:
- myLocalRefDim = 1; myLocalNbRef = 2; Seg2Init();
+ myLocalRefDim = 1;
+ myLocalNbRef = 2;
+ Seg2Init();
aSatify = isSatisfy();
CHECK_MACRO;
break;
case NORM_SEG3:
- myLocalRefDim = 1; myLocalNbRef = 3; Seg3Init();
+ myLocalRefDim = 1;
+ myLocalNbRef = 3;
+ Seg3Init();
aSatify = isSatisfy();
CHECK_MACRO;
break;
case NORM_TRI3:
- myLocalRefDim = 2; myLocalNbRef = 3; Tria3aInit();
+ myLocalRefDim = 2;
+ myLocalNbRef = 3;
+ Tria3aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_TRI6:
- myLocalRefDim = 2; myLocalNbRef = 6; Tria6aInit();
+ myLocalRefDim = 2;
+ myLocalNbRef = 6;
+ Tria6aInit();
aSatify = isSatisfy();
if(!aSatify)
{
break;
case NORM_QUAD4:
- myLocalRefDim = 2; myLocalNbRef = 4; Quad4aInit();
+ myLocalRefDim = 2;
+ myLocalNbRef = 4;
+ Quad4aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_QUAD8:
- myLocalRefDim = 2; myLocalNbRef = 8; Quad8aInit();
+ myLocalRefDim = 2;
+ myLocalNbRef = 8;
+ Quad8aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_TETRA4:
- myLocalRefDim = 3; myLocalNbRef = 4; Tetra4aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 4;
+ Tetra4aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_TETRA10:
- myLocalRefDim = 3; myLocalNbRef = 10; Tetra10aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 10;
+ Tetra10aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_PYRA5:
- myLocalRefDim = 3; myLocalNbRef = 5; Pyra5aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 5;
+ Pyra5aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_PYRA13:
- myLocalRefDim = 3; myLocalNbRef = 13; Pyra13aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 13;
+ Pyra13aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_PENTA6:
- myLocalRefDim = 3; myLocalNbRef = 6; Penta6aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 6;
+ Penta6aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_PENTA15:
- myLocalRefDim = 3; myLocalNbRef = 15; Penta15aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 15;
+ Penta15aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_HEXA8:
- myLocalRefDim = 3; myLocalNbRef = 8; Hexa8aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 8;
+ Hexa8aInit();
aSatify = isSatisfy();
if(!aSatify)
break;
case NORM_HEXA20:
- myLocalRefDim = 3; myLocalNbRef = 20; Hexa20aInit();
+ myLocalRefDim = 3;
+ myLocalNbRef = 20;
+ Hexa20aInit();
aSatify = isSatisfy();
if(!aSatify)
void GaussInfo::Seg2Init()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; break;
- case 1: coords[0] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Seg3Init()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; break;
- case 1: coords[0] = 1.0; break;
- case 2: coords[0] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tria3aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = -1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tria3bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 0.0; break;
- case 1: coords[0] = 1.0; coords[1] = 0.0; break;
- case 2: coords[0] = 0.0; coords[1] = 1.0; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tria6aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = -1.0; break;
- case 3: coords[0] = -1.0; coords[1] = 1.0; break;
- case 4: coords[0] = 0.0; coords[1] = -1.0; break;
- case 5: coords[0] = 0.0; coords[1] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
+ case 3:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ break;
+ case 5:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tria6bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 0.0; break;
- case 1: coords[0] = 1.0; coords[1] = 0.0; break;
- case 2: coords[0] = 0.0; coords[1] = 1.0; break;
- case 3: coords[0] = 0.5; coords[1] = 0.0; break;
- case 4: coords[0] = 0.5; coords[1] = 0.5; break;
- case 5: coords[0] = 0.0; coords[1] = 0.5; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ break;
+
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ break;
+
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ break;
+
+ case 3:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ break;
+
+ case 4:
+ coords[0] = 0.5;
+ coords[1] = 0.5;
+ break;
+
+ case 5:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ break;
+
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Quad4aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = -1.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ break;
+
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Quad4bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; break;
- case 1: coords[0] = 1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; break;
- case 3: coords[0] = -1.0; coords[1] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ break;
+ case 3:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Quad8aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = -1.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; break;
- case 4: coords[0] = -1.0; coords[1] = 0.0; break;
- case 5: coords[0] = 0.0; coords[1] = -1.0; break;
- case 6: coords[0] = 1.0; coords[1] = 0.0; break;
- case 7: coords[0] = 0.0; coords[1] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ break;
+ case 4:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ break;
+ case 5:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ break;
+ case 6:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ break;
+ case 7:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Quad8bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; break;
- case 1: coords[0] = 1.0; coords[1] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; break;
- case 3: coords[0] = -1.0; coords[1] = 1.0; break;
- case 4: coords[0] = 0.0; coords[1] = -1.0; break;
- case 5: coords[0] = 1.0; coords[1] = 0.0; break;
- case 6: coords[0] = 0.0; coords[1] = 1.0; break;
- case 7: coords[0] = -1.0; coords[1] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ break;
+ case 3:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ break;
+ case 6:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ break;
+ case 7:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tetra4aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 2: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tetra4bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 1: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tetra10aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 2: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 4: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 5: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 6: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.0; break;
- case 7: coords[0] = 0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 8: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 9: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 5:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 6:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 7:
+ coords[0] = 0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 8:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 9:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Tetra10bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 1: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 6: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 5: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 4: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.0; break;
- case 7: coords[0] = 0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 9: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 8: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 6:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 5:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 7:
+ coords[0] = 0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 9:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 8:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Pyra5aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Pyra5bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Pyra13aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
-
- case 5: coords[0] = 0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 6: coords[0] = -0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 7: coords[0] = -0.5; coords[1] = -0.5; coords[2] = 0.0; break;
- case 8: coords[0] = 0.5; coords[1] = -0.5; coords[2] = 0.0; break;
- case 9: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 10: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 11: coords[0] = -0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 12: coords[0] = 0.0; coords[1] = -0.5; coords[2] = 0.5; break;
+ case 0:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+
+ case 5:
+ coords[0] = 0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 6:
+ coords[0] = -0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 7:
+ coords[0] = -0.5;
+ coords[1] = -0.5;
+ coords[2] = 0.0;
+ break;
+ case 8:
+ coords[0] = 0.5;
+ coords[1] = -0.5;
+ coords[2] = 0.0;
+ break;
+ case 9:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 10:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 11:
+ coords[0] = -0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 12:
+ coords[0] = 0.0;
+ coords[1] = -0.5;
+ coords[2] = 0.5;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Pyra13bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 1: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 8: coords[0] = 0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 7: coords[0] = -0.5; coords[1] = 0.5; coords[2] = 0.0; break;
- case 6: coords[0] = -0.5; coords[1] = -0.5; coords[2] = 0.0; break;
- case 5: coords[0] = 0.5; coords[1] = -0.5; coords[2] = 0.0; break;
- case 9: coords[0] = 0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 12: coords[0] = 0.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 11: coords[0] = -0.5; coords[1] = 0.0; coords[2] = 0.5; break;
- case 10: coords[0] = 0.0; coords[1] = -0.5; coords[2] = 0.5; break;
+ case 0:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 8:
+ coords[0] = 0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 7:
+ coords[0] = -0.5;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 6:
+ coords[0] = -0.5;
+ coords[1] = -0.5;
+ coords[2] = 0.0;
+ break;
+ case 5:
+ coords[0] = 0.5;
+ coords[1] = -0.5;
+ coords[2] = 0.0;
+ break;
+ case 9:
+ coords[0] = 0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 12:
+ coords[0] = 0.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 11:
+ coords[0] = -0.5;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 10:
+ coords[0] = 0.0;
+ coords[1] = -0.5;
+ coords[2] = 0.5;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Penta6aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 1: coords[0] = -1.0; coords[1] = -0.0; coords[2] = 1.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 5: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -0.0;
+ coords[2] = 1.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Penta6bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = -0.0; coords[2] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 5: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 4: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = -0.0;
+ coords[2] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 4:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Penta15aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 1: coords[0] = -1.0; coords[1] = -0.0; coords[2] = 1.0; break;
- case 2: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 4: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 5: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
-
- case 6: coords[0] = -1.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 7: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 8: coords[0] = -1.0; coords[1] = 0.5; coords[2] = 0.0; break;
- case 9: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 10: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 11: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 12: coords[0] = 1.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 13: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 14: coords[0] = 1.0; coords[1] = 0.5; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = -0.0;
+ coords[2] = 1.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 4:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+
+ case 6:
+ coords[0] = -1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 7:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 8:
+ coords[0] = -1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 9:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 10:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 11:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 12:
+ coords[0] = 1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 13:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 14:
+ coords[0] = 1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Penta15bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 2: coords[0] = -1.0; coords[1] = -0.0; coords[2] = 1.0; break;
- case 1: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 3: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 5: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 4: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.0; break;
-
- case 8: coords[0] = -1.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 7: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 6: coords[0] = -1.0; coords[1] = 0.5; coords[2] = 0.0; break;
- case 12: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 14: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 13: coords[0] = 0.0; coords[1] = 0.0; coords[2] = 0.0; break;
- case 11: coords[0] = 1.0; coords[1] = 0.5; coords[2] = 0.5; break;
- case 10: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 0.5; break;
- case 9: coords[0] = 1.0; coords[1] = 0.5; coords[2] = 0.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 2:
+ coords[0] = -1.0;
+ coords[1] = -0.0;
+ coords[2] = 1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 4:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+
+ case 8:
+ coords[0] = -1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 7:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 6:
+ coords[0] = -1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
+ case 12:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 14:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 13:
+ coords[0] = 0.0;
+ coords[1] = 0.0;
+ coords[2] = 0.0;
+ break;
+ case 11:
+ coords[0] = 1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.5;
+ break;
+ case 10:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 0.5;
+ break;
+ case 9:
+ coords[0] = 1.0;
+ coords[1] = 0.5;
+ coords[2] = 0.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Hexa8aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 1: coords[0] = 1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 3: coords[0] = -1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 4: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 5: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 6: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 7: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 3:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 4:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 6:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 7:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Hexa8bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 3: coords[0] = 1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 1: coords[0] = -1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 4: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 7: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 6: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 5: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 4:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 7:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 6:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
void GaussInfo::Hexa20aInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 1: coords[0] = 1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 3: coords[0] = -1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 4: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 5: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 6: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 7: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 1.0; break;
-
- case 8: coords[0] = 0.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 9: coords[0] = 1.0; coords[1] = 0.0; coords[2] = -1.0; break;
- case 10: coords[0] = 0.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 11: coords[0] = -1.0; coords[1] = 0.0; coords[2] = -1.0; break;
- case 12: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 13: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 14: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 15: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 16: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 17: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 18: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 19: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 1:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 3:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 4:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 6:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 7:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+
+ case 8:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 9:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = -1.0;
+ break;
+ case 10:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 11:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = -1.0;
+ break;
+ case 12:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 13:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 14:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 15:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 16:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 17:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 18:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 19:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
* Init Qaudratic Hehahedron Reference coordinates and Shape function.
* Case B.
*/
-void GaussInfo::Hexa20bInit()
+void GaussInfo::Hexa20bInit()
{
LOCAL_COORD_MACRO_BEGIN;
- case 0: coords[0] = -1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 3: coords[0] = 1.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 2: coords[0] = 1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 1: coords[0] = -1.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 4: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 7: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 6: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 5: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 1.0; break;
-
- case 11: coords[0] = 0.0; coords[1] = -1.0; coords[2] = -1.0; break;
- case 10: coords[0] = 1.0; coords[1] = 0.0; coords[2] = -1.0; break;
- case 9: coords[0] = 0.0; coords[1] = 1.0; coords[2] = -1.0; break;
- case 8: coords[0] = -1.0; coords[1] = 0.0; coords[2] = -1.0; break;
- case 16: coords[0] = -1.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 19: coords[0] = 1.0; coords[1] = -1.0; coords[2] = 0.0; break;
- case 18: coords[0] = 1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 17: coords[0] = -1.0; coords[1] = 1.0; coords[2] = 0.0; break;
- case 15: coords[0] = 0.0; coords[1] = -1.0; coords[2] = 1.0; break;
- case 14: coords[0] = 1.0; coords[1] = 0.0; coords[2] = 1.0; break;
- case 13: coords[0] = 0.0; coords[1] = 1.0; coords[2] = 1.0; break;
- case 12: coords[0] = -1.0; coords[1] = 0.0; coords[2] = 1.0; break;
+ case 0:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 3:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 2:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 1:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 4:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 7:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 6:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 5:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+
+ case 11:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = -1.0;
+ break;
+ case 10:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = -1.0;
+ break;
+ case 9:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = -1.0;
+ break;
+ case 8:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = -1.0;
+ break;
+ case 16:
+ coords[0] = -1.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 19:
+ coords[0] = 1.0;
+ coords[1] = -1.0;
+ coords[2] = 0.0;
+ break;
+ case 18:
+ coords[0] = 1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 17:
+ coords[0] = -1.0;
+ coords[1] = 1.0;
+ coords[2] = 0.0;
+ break;
+ case 15:
+ coords[0] = 0.0;
+ coords[1] = -1.0;
+ coords[2] = 1.0;
+ break;
+ case 14:
+ coords[0] = 1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
+ case 13:
+ coords[0] = 0.0;
+ coords[1] = 1.0;
+ coords[2] = 1.0;
+ break;
+ case 12:
+ coords[0] = -1.0;
+ coords[1] = 0.0;
+ coords[2] = 1.0;
+ break;
LOCAL_COORD_MACRO_END;
SHAPE_FUN_MACRO_BEGIN;
std::cout<<"Cell type : "<<info->GetCellType()<<std::endl;
#endif
- for( int gaussId = 0; gaussId < info->GetNbGauss() ; gaussId++ )
+ for( int gaussId = 0; gaussId < info->GetNbGauss(); gaussId++ )
{
#ifdef MYDEBUG
std::cout<<"Gauss ID = "<<gaussId<<std::endl;
{
switch(dimId)
{
- case 0: std::cout<<"( "<<nodeCoord[dimId];break;
- case 1: std::cout<<", "<<nodeCoord[dimId];break;
- case 2: std::cout<<", "<<nodeCoord[dimId]<<" )";break;
+ case 0:
+ std::cout<<"( "<<nodeCoord[dimId];
+ break;
+ case 1:
+ std::cout<<", "<<nodeCoord[dimId];
+ break;
+ case 2:
+ std::cout<<", "<<nodeCoord[dimId]<<" )";
+ break;
}
}
std::cout<<std::endl;