47 size_t index = 0, isum = 0;
48 const size_t offset = 3;
53 for (
size_t i = 0; i < numPoints - 2; ++i)
73 for (
size_t j = 0; j < 3; ++j)
86 for (
size_t j = 0; j < 3; ++j)
99 for (
size_t j = 0; j < 6; ++j)
114 "sum not equal to npts");
137 PointsBaseType::v_CalculateDerivMatrix();
153 std::shared_ptr<NekMatrix<NekDouble>> mat =
154 m_util->GetInterpolationMatrix(xi);
155 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(), 1,
161 std::shared_ptr<PointsBaseType> returnval(
163 returnval->Initialize();
173 const size_t nVerts = 3;
175 const size_t nBoundaryPoints = 3 * nEdgeInteriorPoints + 3;
177 if (nEdgeInteriorPoints == 0)
184 for (i = cnt = istart; i < nBoundaryPoints; i++)
195 iend = istart + nEdgeInteriorPoints;
196 for (i = istart; i < iend; i++)
198 for (j = istart + 1; j < iend; j++)
210 for (i = cnt = istart; i < nBoundaryPoints; i++)
221 iend = istart + nEdgeInteriorPoints;
222 for (i = istart; i < iend; i++)
224 for (j = istart + 1; j < iend; j++)
236 for (i = cnt = istart; i < nBoundaryPoints; i++)
246 iend = istart + nEdgeInteriorPoints;
247 for (i = istart; i < iend; i++)
249 for (j = istart + 1; j < iend; j++)
288 for (i = 0; i < xc.size() - 1; i++)
290 if (yc[i] > yc[i + 1])
292 std::swap(xc[i], xc[i + 1]);
293 std::swap(yc[i], yc[i + 1]);
307 for (i = offset; i < offset + npl - 1; i++)
309 if (xc[i] > xc[i + 1])
311 std::swap(xc[i], xc[i + 1]);
312 std::swap(yc[i], yc[i + 1]);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
size_type size() const
Returns the array's size.
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)
void NodalPointReorder2d()
static bool initPointsManager[]
void v_CalculateWeights() final
std::shared_ptr< NodalUtilTriangle > m_util
void CalculateInterpMatrix(const Array< OneD, const NekDouble > &xia, const Array< OneD, const NekDouble > &yia, Array< OneD, NekDouble > &interp)
void v_CalculatePoints() final
void v_CalculateDerivMatrix() final
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 perm3A_2d[3][3]
static const NekDouble NodalTriElecData[][6]
static const size_t NodalTriElecNPTS[NodalTriElecAvailable]
PointsManagerT & PointsManager(void)
static const size_t perm6_2d[6][3]
@ eNodalTriElec
2D Nodal Electrostatic Points on a Triangle
static const size_t perm3B_2d[3][3]
static const NekDouble kNekZeroTol
std::vector< double > w(NPUPPER)
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)