45 namespace LibUtilities
61 for(
unsigned int i=0; i < numPoints-2; ++i)
82 for(
unsigned int j=0; j < 3; ++j)
95 for(
unsigned int j=0; j < 3; ++j)
109 for(
unsigned int j=0; j < 6; ++j)
168 std::shared_ptr<NekMatrix<NekDouble> > mat =
169 m_util->GetInterpolationMatrix(xi);
170 Vmath::Vcopy(mat->GetRows() * mat->GetColumns(), mat->GetRawPtr(),
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++)
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++)
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[]
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 CalculateDerivMatrix()
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 CalculateWeights()
virtual void CalculateDerivMatrix()
PointsKey m_pointsKey
Points type for this points distributions.
unsigned int GetNumPoints() const
virtual void CalculatePoints()
Array< OneD, DataType > m_weights
Quadrature weights for the weights.
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)