52 size_t index = 0, isum = 0;
53 const size_t offset = 3;
58 for (
size_t i = 0; i < numPoints - 2; ++i)
78 for (
size_t j = 0; j < 3; ++j)
91 for (
size_t j = 0; j < 3; ++j)
104 for (
size_t j = 0; j < 6; ++j)
119 "sum not equal to npts");
147 std::shared_ptr<NekMatrix<NekDouble>> mat =
148 m_util->GetInterpolationMatrix(xi);
149 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(), 1,
158 PointsBaseType::v_CalculateDerivMatrix();
166 std::shared_ptr<PointsBaseType> returnval(
168 returnval->Initialize();
178 const size_t nVerts = 3;
180 const size_t nBoundaryPoints = 3 * nEdgeInteriorPoints + 3;
182 if (nEdgeInteriorPoints == 0)
189 for (i = cnt = istart; i < nBoundaryPoints; i++)
200 iend = istart + nEdgeInteriorPoints;
201 for (i = istart; i < iend; i++)
203 for (j = istart + 1; j < iend; j++)
215 for (i = cnt = istart; i < nBoundaryPoints; i++)
226 iend = istart + nEdgeInteriorPoints;
227 for (i = istart; i < iend; i++)
229 for (j = istart + 1; j < iend; j++)
241 for (i = cnt = istart; i < nBoundaryPoints; i++)
251 iend = istart + nEdgeInteriorPoints;
252 for (i = istart; i < iend; i++)
254 for (j = istart + 1; j < iend; j++)
293 for (i = 0; i < xc.size() - 1; i++)
295 if (yc[i] > yc[i + 1])
297 std::swap(xc[i], xc[i + 1]);
298 std::swap(yc[i], yc[i + 1]);
312 for (i = offset; i < offset + npl - 1; i++)
314 if (xc[i] > xc[i + 1])
316 std::swap(xc[i], xc[i + 1]);
317 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...
virtual void v_CalculateDerivMatrix() override final
void NodalPointReorder2d()
static bool initPointsManager[]
void CalculateInterpMatrix(const Array< OneD, const NekDouble > &xi, const Array< OneD, const NekDouble > &yi, Array< OneD, NekDouble > &interp)
virtual void v_CalculatePoints() override final
virtual void v_CalculateWeights() override final
std::shared_ptr< NodalUtilTriangle > m_util
static std::shared_ptr< PointsBaseType > Create(const PointsKey &key)
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]
PointsManagerT & PointsManager(void)
static const size_t perm6_2d[6][3]
static const NekDouble NodalTriFeketeData[][6]
static const size_t NodalTriFeketeNPTS[NodalTriFeketeAvailable]
@ eNodalTriFekete
2D Nodal Fekete Points on a Triangle
static const size_t perm3B_2d[3][3]
static const NekDouble kNekZeroTol
std::vector< double > w(NPUPPER)
The above copyright notice and this permission notice shall be included.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)