45 namespace LibUtilities
54 int index = 0, isum = 0;
60 for (
unsigned int i = 0; i < numPoints - 2; ++i)
80 for (
unsigned int j = 0; j < 3; ++j)
93 for (
unsigned int j = 0; j < 3; ++j)
106 for (
unsigned int j = 0; j < 6; ++j)
129 "sum not equal to npts");
168 std::shared_ptr<NekMatrix<NekDouble>> mat =
169 m_util->GetInterpolationMatrix(xi);
170 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(), 1,
176 std::shared_ptr<PointsBaseType> returnval(
178 returnval->Initialize();
188 const int nVerts = 3;
190 const int nBoundaryPoints = 3 * nEdgeInteriorPoints + 3;
192 if (nEdgeInteriorPoints == 0)
199 for (i = cnt = istart; i < nBoundaryPoints; i++)
210 iend = istart + nEdgeInteriorPoints;
211 for (i = istart; i < iend; i++)
213 for (j = istart + 1; j < iend; j++)
225 for (i = cnt = istart; i < nBoundaryPoints; i++)
236 iend = istart + nEdgeInteriorPoints;
237 for (i = istart; i < iend; i++)
239 for (j = istart + 1; j < iend; j++)
251 for (i = cnt = istart; i < nBoundaryPoints; i++)
261 iend = istart + nEdgeInteriorPoints;
262 for (i = istart; i < iend; i++)
264 for (j = istart + 1; j < iend; j++)
303 for (i = 0; i < xc.size() - 1; i++)
305 if (yc[i] > yc[i + 1])
307 std::swap(xc[i], xc[i + 1]);
308 std::swap(yc[i], yc[i + 1]);
322 for (i = offset; i < offset + npl - 1; i++)
324 if (xc[i] > xc[i + 1])
326 std::swap(xc[i], xc[i + 1]);
327 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[]
virtual void v_CalculateDerivMatrix() override
std::shared_ptr< NodalUtilTriangle > m_util
void CalculateInterpMatrix(const Array< OneD, const NekDouble > &xia, const Array< OneD, const NekDouble > &yia, Array< OneD, NekDouble > &interp)
virtual void v_CalculatePoints() override
virtual void v_CalculateWeights() 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]
static const NekDouble NodalTriElecData[][6]
PointsManagerT & PointsManager(void)
static const unsigned int perm6_2d[6][3]
static const unsigned int perm3B_2d[3][3]
static const unsigned int NodalTriElecNPTS[NodalTriElecAvailable]
@ eNodalTriElec
2D Nodal Electrostatic 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)