Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "SundanceBasisDOFTopologyBase.hpp"
00043 #include "PlayaExceptions.hpp"
00044
00045
00046 using namespace Sundance;
00047 using namespace Teuchos;
00048
00049
00050 int BasisDOFTopologyBase::nReferenceDOFsWithFacets(
00051 const CellType& maximalCellType,
00052 const CellType& cellType
00053 ) const
00054 {
00055 switch(cellType)
00056 {
00057 case TetCell:
00058 return nReferenceDOFsWithoutFacets(maximalCellType, TetCell)
00059 + 4*nReferenceDOFsWithoutFacets(maximalCellType, TriangleCell)
00060 + 6*nReferenceDOFsWithoutFacets(maximalCellType, LineCell)
00061 + 4*nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00062 case BrickCell:
00063 return nReferenceDOFsWithoutFacets(maximalCellType, BrickCell)
00064 + 6*nReferenceDOFsWithoutFacets(maximalCellType, QuadCell)
00065 + 12*nReferenceDOFsWithoutFacets(maximalCellType, LineCell)
00066 + 8*nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00067 case TriangleCell:
00068 return nReferenceDOFsWithoutFacets(maximalCellType, TriangleCell)
00069 + 3*nReferenceDOFsWithoutFacets(maximalCellType, LineCell)
00070 + 3*nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00071 case QuadCell:
00072 return nReferenceDOFsWithoutFacets(maximalCellType, QuadCell)
00073 + 4*nReferenceDOFsWithoutFacets(maximalCellType, LineCell)
00074 + 4*nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00075 case LineCell:
00076 return nReferenceDOFsWithoutFacets(maximalCellType, LineCell)
00077 + 2*nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00078 case PointCell:
00079 return nReferenceDOFsWithoutFacets(maximalCellType, PointCell);
00080 default:
00081 TEUCHOS_TEST_FOR_EXCEPTION(true, std::runtime_error,
00082 "case cellType=" << cellType << " not defined");
00083 }
00084 return -1;
00085 }