51 size_t index = 0, isum = 0;
52 const size_t offset = 5;
57 for (
size_t i = 0; i < numPoints - 2; ++i)
81 for (
size_t j = 0; j < 4; ++j)
98 for (
size_t j = 0; j < 6; ++j)
115 for (
size_t j = 0; j < 12; ++j)
132 for (
size_t j = 0; j < 12; ++j)
149 for (
size_t j = 0; j < 12; ++j)
166 for (
size_t j = 0; j < 24; ++j)
185 "sum not equal to npts");
216 std::shared_ptr<NekMatrix<NekDouble>> mat =
217 m_util->GetInterpolationMatrix(xi);
218 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(), 1,
225 PointsBaseType::v_CalculateDerivMatrix();
234 std::shared_ptr<PointsBaseType> returnval(
236 returnval->Initialize();
245 const size_t nVerts = 4;
247 const size_t nFaceInteriorPoints =
251 const size_t nAllPoints =
253 if (nEdgeInteriorPoints == 0)
260 for (
size_t i = cnt = istart; i < nAllPoints; i++)
273 iend = istart + nEdgeInteriorPoints;
274 for (
size_t i = istart; i < iend; i++)
276 for (
size_t j = istart + 1; j < iend; j++)
289 for (
size_t i = cnt = istart; i < nAllPoints; i++)
302 iend = istart + nEdgeInteriorPoints;
303 for (
size_t i = istart; i < iend; i++)
305 for (
size_t j = istart + 1; j < iend; j++)
318 for (
size_t i = cnt = istart; i < nAllPoints; i++)
331 iend = istart + nEdgeInteriorPoints;
332 for (
size_t i = istart; i < iend; i++)
334 for (
size_t j = istart + 1; j < iend; j++)
347 for (
size_t i = cnt = istart; i < nAllPoints; i++)
360 iend = istart + nEdgeInteriorPoints;
361 for (
size_t i = istart; i < iend; i++)
363 for (
size_t j = istart + 1; j < iend; j++)
376 for (
size_t i = cnt = istart; i < nAllPoints; i++)
389 iend = istart + nEdgeInteriorPoints;
390 for (
size_t i = istart; i < iend; i++)
392 for (
size_t j = istart + 1; j < iend; j++)
405 for (
size_t i = cnt = istart; i < nAllPoints; i++)
418 iend = istart + nEdgeInteriorPoints;
419 for (
size_t i = istart; i < iend; i++)
421 for (
size_t j = istart + 1; j < iend; j++)
440 for (
size_t i = cnt = istart; i < nAllPoints; i++)
452 iend = istart + nFaceInteriorPoints;
457 for (
size_t i = istart; i < iend - 1; i++)
476 for (
size_t i = offset + istart; i < offset + istart + npl - 1; i++)
493 for (
size_t i = cnt = istart; i < nAllPoints; i++)
505 iend = istart + nFaceInteriorPoints;
510 for (
size_t i = istart; i < iend - 1; i++)
529 for (
size_t i = offset + istart; i < offset + istart + npl - 1; i++)
546 for (
size_t i = cnt = istart; i < nAllPoints; i++)
559 iend = istart + nFaceInteriorPoints;
564 for (
size_t i = istart; i < iend - 1; i++)
583 for (
size_t i = offset + istart; i < offset + istart + npl - 1; i++)
600 for (
size_t i = cnt = istart; i < nAllPoints; i++)
612 iend = istart + nFaceInteriorPoints;
617 for (
size_t i = istart; i < iend - 1; i++)
636 for (
size_t i = offset + istart; i < offset + istart + npl - 1; i++)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
bool RegisterCreator(const KeyType &key, const CreateFuncType &createFunc)
Register the given function and associate it with the key. The return value is just to facilitate cal...
static std::shared_ptr< PointsBaseType > Create(const PointsKey &key)
static bool initPointsManager[]
void v_CalculatePoints() final
void CalculateInterpMatrix(const Array< OneD, const NekDouble > &xia, const Array< OneD, const NekDouble > &yia, const Array< OneD, const NekDouble > &zia, Array< OneD, NekDouble > &interp)
void NodalPointReorder3d()
void v_CalculateDerivMatrix() final
void v_CalculateWeights() final
std::shared_ptr< NodalUtilTetrahedron > m_util
Array< OneD, DataType > m_points[3]
Storage for the point locations, allowing for up to a 3D points storage.
MatrixSharedPtrType m_derivmatrix[3]
Derivative matrices.
virtual void v_CalculatePoints()
size_t GetNumPoints() const
PointsKey m_pointsKey
Points type for this points distributions.
Array< OneD, DataType > m_weights
Quadrature weights for the weights.
virtual void v_CalculateWeights()
Defines a specification for a set of points.
size_t GetTotNumPoints() const
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
static const size_t perm24_3d[24][4]
static const size_t perm12B_3d[12][4]
PointsManagerT & PointsManager(void)
static const size_t perm12C_3d[12][4]
static const NekDouble NodalTetElecData[][9]
static const size_t perm12A_3d[12][4]
@ eNodalTetElec
3D Nodal Electrostatic Points on a Tetrahedron
static const size_t perm6_3d[6][4]
static const size_t perm4_3d[4][4]
static const size_t NodalTetElecNPTS[NodalTetElecAvailable]
static const NekDouble kNekZeroTol
std::vector< double > w(NPUPPER)
std::vector< double > d(NPUPPER *NPUPPER)
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)