47 namespace LibUtilities
59 int index = 0, isum = 0;
65 for (
unsigned int i = 0; i < numPoints - 2; ++i)
86 for (
unsigned int j = 0; j < 3; ++j)
99 for (
unsigned int j = 0; j < 3; ++j)
112 for (
unsigned int j = 0; j < 6; ++j)
127 "sum not equal to npts");
155 std::shared_ptr<NekMatrix<NekDouble>> mat =
156 m_util->GetInterpolationMatrix(xi);
157 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(), 1,
174 std::shared_ptr<PointsBaseType> returnval(
176 returnval->Initialize();
186 const int nVerts = 3;
188 const int nBoundaryPoints = 3 * nEdgeInteriorPoints + 3;
190 if (nEdgeInteriorPoints == 0)
197 for (i = cnt = istart; i < nBoundaryPoints; i++)
208 iend = istart + nEdgeInteriorPoints;
209 for (i = istart; i < iend; i++)
211 for (j = istart + 1; j < iend; j++)
223 for (i = cnt = istart; i < nBoundaryPoints; i++)
234 iend = istart + nEdgeInteriorPoints;
235 for (i = istart; i < iend; i++)
237 for (j = istart + 1; j < iend; j++)
249 for (i = cnt = istart; i < nBoundaryPoints; i++)
259 iend = istart + nEdgeInteriorPoints;
260 for (i = istart; i < iend; i++)
262 for (j = istart + 1; j < iend; j++)
301 for (i = 0; i < xc.size() - 1; i++)
303 if (yc[i] > yc[i + 1])
305 std::swap(xc[i], xc[i + 1]);
306 std::swap(yc[i], yc[i + 1]);
320 for (i = offset; i < offset + npl - 1; i++)
322 if (xc[i] > xc[i + 1])
324 std::swap(xc[i], xc[i + 1]);
325 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_CalculatePoints() override
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_CalculateWeights() override
std::shared_ptr< NodalUtilTriangle > m_util
static std::shared_ptr< PointsBaseType > Create(const PointsKey &key)
virtual void v_CalculateDerivMatrix() override
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()
PointsKey m_pointsKey
Points type for this points distributions.
unsigned int GetNumPoints() const
Array< OneD, DataType > m_weights
Quadrature weights for the weights.
virtual void v_CalculateDerivMatrix()
virtual void v_CalculateWeights()
Defines a specification for a set of points.
unsigned int 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.
Array< OneD, DataType > & GetPtr()
unsigned int GetRows() const
static const unsigned int perm3A_2d[3][3]
PointsManagerT & PointsManager(void)
static const NekDouble NodalTriFeketeData[][6]
static const unsigned int perm6_2d[6][3]
static const unsigned int perm3B_2d[3][3]
static const unsigned int NodalTriFeketeNPTS[NodalTriFeketeAvailable]
@ eNodalTriFekete
2D Nodal Fekete Points on a Triangle
static const NekDouble kNekZeroTol
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)