Nektar++
Public Member Functions | Protected Member Functions | Friends | List of all members
Nektar::SpatialDomains::PointGeom Class Reference

#include <PointGeom.h>

Inheritance diagram for Nektar::SpatialDomains::PointGeom:
[legend]

Public Member Functions

 PointGeom ()
 
 PointGeom (const int coordim, const int vid, NekDouble x, NekDouble y, NekDouble z)
 
 PointGeom (const PointGeom &T)
 
 ~PointGeom () override
 
int GetVid ()
 
void GetCoords (NekDouble &x, NekDouble &y, NekDouble &z)
 
void GetCoords (Array< OneD, NekDouble > &coords)
 
void UpdatePosition (NekDouble x, NekDouble y, NekDouble z)
 
void Mult (PointGeom &a, PointGeom &b)
 _this = a x b More...
 
void Add (PointGeom &a, PointGeom &b)
 
void Sub (PointGeom &a, PointGeom &b)
 
void Rotate (PointGeom &a, int dir, NekDouble angle)
 _this = rotation of a by angle 'angle' around axis dir More...
 
NekDouble dist (PointGeom &a)
 return distance between this and input a More...
 
NekDouble dot (PointGeom &a)
 retun the dot product between this and input a More...
 
- Public Member Functions inherited from Nektar::SpatialDomains::Geometry0D
 Geometry0D ()
 
 Geometry0D (const int coordim)
 
 ~Geometry0D () override
 
- Public Member Functions inherited from Nektar::SpatialDomains::Geometry
 Geometry ()
 Default constructor. More...
 
 Geometry (int coordim)
 Constructor when supplied a coordinate dimension. More...
 
virtual ~Geometry ()
 Default destructor. More...
 
int GetCoordim () const
 Return the coordinate dimension of this object (i.e. the dimension of the space in which this object is embedded). More...
 
void SetCoordim (int coordim)
 Sets the coordinate dimension of this object (i.e. the dimension of the space in which this object is embedded). More...
 
GeomFactorsSharedPtr GetGeomFactors ()
 Get the geometric factors for this object, generating them if required. More...
 
GeomFactorsSharedPtr GetRefGeomFactors (const Array< OneD, const LibUtilities::BasisSharedPtr > &tbasis)
 
GeomFactorsSharedPtr GetMetricInfo ()
 Get the geometric factors for this object. More...
 
LibUtilities::ShapeType GetShapeType (void)
 Get the geometric shape type of this object. More...
 
int GetGlobalID (void) const
 Get the ID of this object. More...
 
void SetGlobalID (int globalid)
 Set the ID of this object. More...
 
int GetVid (int i) const
 Get the ID of vertex i of this object. More...
 
int GetEid (int i) const
 Get the ID of edge i of this object. More...
 
int GetFid (int i) const
 Get the ID of face i of this object. More...
 
int GetTid (int i) const
 Get the ID of trace i of this object. More...
 
PointGeomSharedPtr GetVertex (int i) const
 Returns vertex i of this object. More...
 
Geometry1DSharedPtr GetEdge (int i) const
 Returns edge i of this object. More...
 
Geometry2DSharedPtr GetFace (int i) const
 Returns face i of this object. More...
 
StdRegions::Orientation GetEorient (const int i) const
 Returns the orientation of edge i with respect to the ordering of edges in the standard element. More...
 
StdRegions::Orientation GetForient (const int i) const
 Returns the orientation of face i with respect to the ordering of faces in the standard element. More...
 
int GetNumVerts () const
 Get the number of vertices of this object. More...
 
int GetNumEdges () const
 Get the number of edges of this object. More...
 
int GetNumFaces () const
 Get the number of faces of this object. More...
 
int GetShapeDim () const
 Get the object's shape dimension. More...
 
StdRegions::StdExpansionSharedPtr GetXmap () const
 Return the mapping object Geometry::m_xmap that represents the coordinate transformation from standard element to physical element. More...
 
const Array< OneD, const NekDouble > & GetCoeffs (const int i) const
 Return the coefficients of the transformation Geometry::m_xmap in coordinate direction i. More...
 
void FillGeom ()
 Populate the coordinate mapping Geometry::m_coeffs information from any children geometry elements. More...
 
std::array< NekDouble, 6 > GetBoundingBox ()
 Generates the bounding box for the element. More...
 
void ClearBoundingBox ()
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, NekDouble tol=0.0)
 Determine whether an element contains a particular Cartesian coordinate \((x,y,z)\). More...
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol)
 Determine whether an element contains a particular Cartesian coordinate \((x,y,z)\). More...
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol, NekDouble &dist)
 Determine whether an element contains a particular Cartesian coordinate \(\vec{x} = (x,y,z)\). More...
 
NekDouble GetLocCoords (const Array< OneD, const NekDouble > &coords, Array< OneD, NekDouble > &Lcoords)
 Determine the local collapsed coordinates that correspond to a given Cartesian coordinate for this geometry object. More...
 
NekDouble GetCoord (const int i, const Array< OneD, const NekDouble > &Lcoord)
 Given local collapsed coordinate Lcoord, return the value of physical coordinate in direction i. More...
 
int PreliminaryCheck (const Array< OneD, const NekDouble > &gloCoord)
 A fast and robust check if a given global coord is outside of a deformed element. For regular elements, this check is unnecessary. More...
 
bool MinMaxCheck (const Array< OneD, const NekDouble > &gloCoord)
 Check if given global coord is within the BoundingBox of the element. More...
 
bool ClampLocCoords (Array< OneD, NekDouble > &locCoord, NekDouble tol=std::numeric_limits< NekDouble >::epsilon())
 Clamp local coords to be within standard regions [-1, 1]^dim. More...
 
NekDouble FindDistance (const Array< OneD, const NekDouble > &xs, Array< OneD, NekDouble > &xi)
 
int GetVertexEdgeMap (int i, int j) const
 Returns the standard element edge IDs that are connected to a given vertex. More...
 
int GetVertexFaceMap (int i, int j) const
 Returns the standard element face IDs that are connected to a given vertex. More...
 
int GetEdgeFaceMap (int i, int j) const
 Returns the standard element edge IDs that are connected to a given face. More...
 
int GetEdgeNormalToFaceVert (int i, int j) const
 Returns the standard lement edge IDs that are normal to a given face vertex. More...
 
int GetDir (const int i, const int j=0) const
 Returns the element coordinate direction corresponding to a given face coordinate direction. More...
 
void Reset (CurveMap &curvedEdges, CurveMap &curvedFaces)
 Reset this geometry object: unset the current state, zero Geometry::m_coeffs and remove allocated GeomFactors. More...
 
void Setup ()
 
- Public Member Functions inherited from Nektar::NekPoint< NekDouble >
 NekPoint ()
 
 NekPoint (const std::string &pointValues)
 
 NekPoint (typename boost::call_traits< DataType >::param_type x, typename boost::call_traits< DataType >::param_type y, typename boost::call_traits< DataType >::param_type z)
 
 NekPoint (typename boost::call_traits< DataType >::const_reference a)
 
 NekPoint (const NekPoint< DataType > &rhs)
 
 ~NekPoint ()
 
NekPoint< DataType > & operator= (const NekPoint< DataType > &rhs)
 
boost::call_traits< DataType >::reference operator() (unsigned int i)
 Returns i^{th} element. More...
 
boost::call_traits< DataType >::const_reference operator() (unsigned int i) const
 
boost::call_traits< DataType >::reference operator[] (unsigned int i)
 
boost::call_traits< DataType >::const_reference operator[] (unsigned int i) const
 
boost::call_traits< DataType >::const_reference x () const
 
boost::call_traits< DataType >::reference x ()
 
boost::call_traits< DataType >::const_reference y () const
 
boost::call_traits< DataType >::reference y ()
 
boost::call_traits< DataType >::const_reference z () const
 
boost::call_traits< DataType >::reference z ()
 
boost::call_traits< DataType >::const_reference a () const
 
boost::call_traits< DataType >::const_reference b () const
 
boost::call_traits< DataType >::const_reference c () const
 
boost::call_traits< DataType >::const_reference r () const
 
boost::call_traits< DataType >::const_reference s () const
 
boost::call_traits< DataType >::const_reference t () const
 
void SetX (typename boost::call_traits< DataType >::const_reference val)
 
void SetY (typename boost::call_traits< DataType >::const_reference val)
 
void SetZ (typename boost::call_traits< DataType >::const_reference val)
 
const DataTypeGetPtr () const
 
bool operator== (const NekPoint< DataType > &rhs) const
 
bool operator!= (const NekPoint< DataType > &rhs) const
 
void negate ()
 Arithmetic Routines. More...
 
NekPoint< DataTypeoperator- () const
 
NekPoint< DataType > & operator+= (const NekPoint< DataType > &rhs)
 
NekPoint< DataType > & operator+= (typename boost::call_traits< DataType >::param_type rhs)
 
NekPoint< DataType > & operator-= (const NekPoint< DataType > &rhs)
 
NekPoint< DataType > & operator-= (typename boost::call_traits< DataType >::param_type rhs)
 
NekPoint< DataType > & operator*= (typename boost::call_traits< DataType >::param_type rhs)
 
NekPoint< DataType > & operator/= (typename boost::call_traits< DataType >::param_type rhs)
 
std::string AsString () const
 

Protected Member Functions

void v_GenGeomFactors () override
 
PointGeomSharedPtr v_GetVertex (int i) const override
 
- Protected Member Functions inherited from Nektar::SpatialDomains::Geometry0D
bool v_ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol, NekDouble &dist) override
 Determine whether an element contains a particular Cartesian coordinate \(\vec{x} = (x,y,z)\). More...
 
int v_GetShapeDim () const override
 Get the object's shape dimension. More...
 
- Protected Member Functions inherited from Nektar::SpatialDomains::Geometry
void GenGeomFactors ()
 Handles generation of geometry factors. More...
 
virtual PointGeomSharedPtr v_GetVertex (int i) const =0
 
virtual Geometry1DSharedPtr v_GetEdge (int i) const
 Returns edge i of this object. More...
 
virtual Geometry2DSharedPtr v_GetFace (int i) const
 Returns face i of this object. More...
 
virtual StdRegions::Orientation v_GetEorient (const int i) const
 Returns the orientation of edge i with respect to the ordering of edges in the standard element. More...
 
virtual StdRegions::Orientation v_GetForient (const int i) const
 Returns the orientation of face i with respect to the ordering of faces in the standard element. More...
 
virtual int v_GetNumVerts () const
 Get the number of vertices of this object. More...
 
virtual int v_GetNumEdges () const
 Get the number of edges of this object. More...
 
virtual int v_GetNumFaces () const
 Get the number of faces of this object. More...
 
virtual int v_GetShapeDim () const
 Get the object's shape dimension. More...
 
virtual StdRegions::StdExpansionSharedPtr v_GetXmap () const
 Return the mapping object Geometry::m_xmap that represents the coordinate transformation from standard element to physical element. More...
 
virtual void v_FillGeom ()
 Populate the coordinate mapping Geometry::m_coeffs information from any children geometry elements. More...
 
virtual bool v_ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol, NekDouble &dist)
 Determine whether an element contains a particular Cartesian coordinate \(\vec{x} = (x,y,z)\). More...
 
virtual int v_AllLeftCheck (const Array< OneD, const NekDouble > &gloCoord)
 
virtual NekDouble v_GetCoord (const int i, const Array< OneD, const NekDouble > &Lcoord)
 Given local collapsed coordinate Lcoord, return the value of physical coordinate in direction i. More...
 
virtual NekDouble v_GetLocCoords (const Array< OneD, const NekDouble > &coords, Array< OneD, NekDouble > &Lcoords)
 Determine the local collapsed coordinates that correspond to a given Cartesian coordinate for this geometry object. More...
 
virtual NekDouble v_FindDistance (const Array< OneD, const NekDouble > &xs, Array< OneD, NekDouble > &xi)
 
virtual int v_GetVertexEdgeMap (int i, int j) const
 Returns the standard element edge IDs that are connected to a given vertex. More...
 
virtual int v_GetVertexFaceMap (int i, int j) const
 Returns the standard element face IDs that are connected to a given vertex. More...
 
virtual int v_GetEdgeFaceMap (int i, int j) const
 Returns the standard element edge IDs that are connected to a given face. More...
 
virtual int v_GetEdgeNormalToFaceVert (const int i, const int j) const
 Returns the standard lement edge IDs that are normal to a given face vertex. More...
 
virtual int v_GetDir (const int faceidx, const int facedir) const
 Returns the element coordinate direction corresponding to a given face coordinate direction. More...
 
virtual void v_Reset (CurveMap &curvedEdges, CurveMap &curvedFaces)
 Reset this geometry object: unset the current state, zero Geometry::m_coeffs and remove allocated GeomFactors. More...
 
virtual void v_Setup ()
 
virtual void v_GenGeomFactors ()=0
 
void SetUpCoeffs (const int nCoeffs)
 Initialise the Geometry::m_coeffs array. More...
 
virtual void v_CalculateInverseIsoParam ()
 

Friends

bool operator== (const PointGeom &x, const PointGeom &y)
 Determine equivalence by the ids. No matter what the position, if the ids are the same, then they are equivalent, and vice versa. More...
 
bool operator== (const PointGeom &x, const PointGeom *y)
 
bool operator== (const PointGeom *x, const PointGeom &y)
 
bool operator!= (const PointGeom &x, const PointGeom &y)
 
bool operator!= (const PointGeom &x, const PointGeom *y)
 
bool operator!= (const PointGeom *x, const PointGeom &y)
 

Additional Inherited Members

- Public Types inherited from Nektar::NekPoint< NekDouble >
typedef NekDouble DataType
 
typedef ThreeD dim
 
- Static Public Member Functions inherited from Nektar::NekPoint< NekDouble >
static unsigned int dimension ()
 Returns the number of dimensions for the point. More...
 
- Static Public Attributes inherited from Nektar::SpatialDomains::Geometry0D
static const int kDim = 0
 
- Static Protected Member Functions inherited from Nektar::SpatialDomains::Geometry
static GeomFactorsSharedPtr ValidateRegGeomFactor (GeomFactorsSharedPtr geomFactor)
 Check to see if a geometric factor has already been created that contains the same regular information. More...
 
- Protected Attributes inherited from Nektar::SpatialDomains::Geometry
int m_coordim
 Coordinate dimension of this geometry object. More...
 
GeomFactorsSharedPtr m_geomFactors
 Geometric factors. More...
 
GeomState m_geomFactorsState
 State of the geometric factors. More...
 
StdRegions::StdExpansionSharedPtr m_xmap
 \(\chi\) mapping containing isoparametric transformation. More...
 
GeomState m_state
 Enumeration to dictate whether coefficients are filled. More...
 
bool m_setupState
 Wether or not the setup routines have been run. More...
 
GeomType m_geomType
 Type of geometry. More...
 
LibUtilities::ShapeType m_shapeType
 Type of shape. More...
 
int m_globalID
 Global ID. More...
 
Array< OneD, Array< OneD, NekDouble > > m_coeffs
 Array containing expansion coefficients of m_xmap. More...
 
Array< OneD, NekDoublem_boundingBox
 Array containing bounding box. More...
 
Array< OneD, Array< OneD, NekDouble > > m_isoParameter
 
Array< OneD, Array< OneD, NekDouble > > m_invIsoParam
 
int m_straightEdge
 
- Static Protected Attributes inherited from Nektar::SpatialDomains::Geometry
static GeomFactorsVector m_regGeomFactorsManager
 

Detailed Description

Definition at line 53 of file PointGeom.h.

Constructor & Destructor Documentation

◆ PointGeom() [1/3]

Nektar::SpatialDomains::PointGeom::PointGeom ( )

Definition at line 43 of file PointGeom.cpp.

43 : NekPoint<NekDouble>(0.0, 0.0, 0.0)
44{
46 m_coordim = 0;
47 m_globalID = 0;
48}
LibUtilities::ShapeType m_shapeType
Type of shape.
Definition: Geometry.h:197
int m_coordim
Coordinate dimension of this geometry object.
Definition: Geometry.h:183

References Nektar::LibUtilities::ePoint, Nektar::SpatialDomains::Geometry::m_coordim, Nektar::SpatialDomains::Geometry::m_globalID, and Nektar::SpatialDomains::Geometry::m_shapeType.

Referenced by v_GetVertex().

◆ PointGeom() [2/3]

Nektar::SpatialDomains::PointGeom::PointGeom ( const int  coordim,
const int  vid,
NekDouble  x,
NekDouble  y,
NekDouble  z 
)

Definition at line 50 of file PointGeom.cpp.

52 : NekPoint<NekDouble>(x, y, z)
53{
55 m_coordim = coordim;
56 m_globalID = vid;
57}
boost::call_traits< DataType >::const_reference x() const
Definition: NekPoint.hpp:160
boost::call_traits< DataType >::const_reference z() const
Definition: NekPoint.hpp:172
boost::call_traits< DataType >::const_reference y() const
Definition: NekPoint.hpp:166

References Nektar::LibUtilities::ePoint, Nektar::SpatialDomains::Geometry::m_coordim, Nektar::SpatialDomains::Geometry::m_globalID, and Nektar::SpatialDomains::Geometry::m_shapeType.

◆ PointGeom() [3/3]

Nektar::SpatialDomains::PointGeom::PointGeom ( const PointGeom T)

Definition at line 60 of file PointGeom.cpp.

61 : Geometry0D(T), NekPoint<NekDouble>(T),
62 std::enable_shared_from_this<PointGeom>(T)
63{
64 m_shapeType = T.m_shapeType;
65 m_globalID = T.m_globalID;
66 m_coordim = T.m_coordim;
67}

References Nektar::SpatialDomains::Geometry::m_coordim, Nektar::SpatialDomains::Geometry::m_globalID, and Nektar::SpatialDomains::Geometry::m_shapeType.

◆ ~PointGeom()

Nektar::SpatialDomains::PointGeom::~PointGeom ( )
override

Definition at line 69 of file PointGeom.cpp.

70{
71}

Member Function Documentation

◆ Add()

void Nektar::SpatialDomains::PointGeom::Add ( PointGeom a,
PointGeom b 
)

Definition at line 113 of file PointGeom.cpp.

114{
115 (*this)(0) = a[0] + b[0];
116 (*this)(1) = a[1] + b[1];
117 (*this)(2) = a[2] + b[2];
118 m_coordim = std::max(a.GetCoordim(), b.GetCoordim());
119}
boost::call_traits< DataType >::const_reference a() const
Definition: NekPoint.hpp:178
boost::call_traits< DataType >::const_reference b() const
Definition: NekPoint.hpp:184

References Nektar::NekPoint< NekDouble >::a(), Nektar::NekPoint< NekDouble >::b(), and Nektar::SpatialDomains::Geometry::m_coordim.

◆ dist()

NekDouble Nektar::SpatialDomains::PointGeom::dist ( PointGeom a)

◆ dot()

NekDouble Nektar::SpatialDomains::PointGeom::dot ( PointGeom a)

retun the dot product between this and input a

Definition at line 185 of file PointGeom.cpp.

186{
187 return (x() * a.x() + y() * a.y() + z() * a.z());
188}

References Nektar::NekPoint< NekDouble >::a(), Nektar::NekPoint< NekDouble >::x(), Nektar::NekPoint< NekDouble >::y(), and Nektar::NekPoint< NekDouble >::z().

Referenced by Nektar::LocalRegions::Expansion2D::v_TraceNormLen(), and Nektar::LocalRegions::Expansion3D::v_TraceNormLen().

◆ GetCoords() [1/2]

void Nektar::SpatialDomains::PointGeom::GetCoords ( Array< OneD, NekDouble > &  coords)

Definition at line 89 of file PointGeom.cpp.

90{
91 switch (m_coordim)
92 {
93 case 3:
94 coords[2] = (*this)(2);
95 /* Falls through. */
96 case 2:
97 coords[1] = (*this)(1);
98 /* Falls through. */
99 case 1:
100 coords[0] = (*this)(0);
101 break;
102 }
103}

References Nektar::SpatialDomains::Geometry::m_coordim.

◆ GetCoords() [2/2]

void Nektar::SpatialDomains::PointGeom::GetCoords ( NekDouble x,
NekDouble y,
NekDouble z 
)

Definition at line 73 of file PointGeom.cpp.

74{
75 switch (m_coordim)
76 {
77 case 3:
78 z = (*this)(2);
79 /* Falls through. */
80 case 2:
81 y = (*this)(1);
82 /* Falls through. */
83 case 1:
84 x = (*this)(0);
85 break;
86 }
87}

References Nektar::SpatialDomains::Geometry::m_coordim, Nektar::NekPoint< NekDouble >::x(), Nektar::NekPoint< NekDouble >::y(), and Nektar::NekPoint< NekDouble >::z().

◆ GetVid()

int Nektar::SpatialDomains::PointGeom::GetVid ( )
inline

Definition at line 65 of file PointGeom.h.

66 {
67 return m_globalID;
68 }

References Nektar::SpatialDomains::Geometry::m_globalID.

◆ Mult()

void Nektar::SpatialDomains::PointGeom::Mult ( PointGeom a,
PointGeom b 
)

_this = a x b

Definition at line 131 of file PointGeom.cpp.

132{
133 (*this)(0) = a[1] * b[2] - a[2] * b[1];
134 (*this)(1) = a[2] * b[0] - a[0] * b[2];
135 (*this)(2) = a[0] * b[1] - a[1] * b[0];
136 m_coordim = 3;
137}

References Nektar::NekPoint< NekDouble >::a(), Nektar::NekPoint< NekDouble >::b(), and Nektar::SpatialDomains::Geometry::m_coordim.

Referenced by Nektar::SpatialDomains::QuadGeom::v_GenGeomFactors(), Nektar::SpatialDomains::TriGeom::v_GenGeomFactors(), and Nektar::LocalRegions::Expansion3D::v_TraceNormLen().

◆ Rotate()

void Nektar::SpatialDomains::PointGeom::Rotate ( PointGeom a,
int  dir,
NekDouble  angle 
)

_this = rotation of a by angle 'angle' around axis dir

Definition at line 140 of file PointGeom.cpp.

141{
142 switch (dir)
143 {
144 case 0:
145 {
146 NekDouble yrot = cos(angle) * a.y() - sin(angle) * a.z();
147 NekDouble zrot = sin(angle) * a.y() + cos(angle) * a.z();
148
149 (*this)(0) = a.x();
150 (*this)(1) = yrot;
151 (*this)(2) = zrot;
152 }
153 break;
154 case 1:
155 {
156 NekDouble zrot = cos(angle) * a.z() - sin(angle) * a.x();
157 NekDouble xrot = sin(angle) * a.z() + cos(angle) * a.x();
158
159 (*this)(0) = xrot;
160 (*this)(1) = a.y();
161 (*this)(2) = zrot;
162 }
163 break;
164 case 2:
165 {
166 NekDouble xrot = cos(angle) * a.x() - sin(angle) * a.y();
167 NekDouble yrot = sin(angle) * a.x() + cos(angle) * a.y();
168
169 (*this)(0) = xrot;
170 (*this)(1) = yrot;
171 (*this)(2) = a.z();
172 }
173 break;
174 }
175}
double NekDouble

References Nektar::NekPoint< NekDouble >::a().

Referenced by Nektar::MultiRegions::DisContField::FindPeriodicTraces(), Nektar::SpatialDomains::TriGeom::GetFaceOrientation(), and Nektar::SpatialDomains::QuadGeom::GetFaceOrientation().

◆ Sub()

void Nektar::SpatialDomains::PointGeom::Sub ( PointGeom a,
PointGeom b 
)

◆ UpdatePosition()

void Nektar::SpatialDomains::PointGeom::UpdatePosition ( NekDouble  x,
NekDouble  y,
NekDouble  z 
)

Definition at line 105 of file PointGeom.cpp.

106{
107 (*this)(0) = x;
108 (*this)(1) = y;
109 (*this)(2) = z;
110}

References Nektar::NekPoint< NekDouble >::x(), Nektar::NekPoint< NekDouble >::y(), and Nektar::NekPoint< NekDouble >::z().

Referenced by Nektar::LocalRegions::Expansion3D::v_TraceNormLen().

◆ v_GenGeomFactors()

void Nektar::SpatialDomains::PointGeom::v_GenGeomFactors ( )
overrideprotectedvirtual

Implements Nektar::SpatialDomains::Geometry.

Definition at line 230 of file PointGeom.cpp.

231{
232}

◆ v_GetVertex()

PointGeomSharedPtr Nektar::SpatialDomains::PointGeom::v_GetVertex ( int  i) const
overrideprotectedvirtual

Implements Nektar::SpatialDomains::Geometry.

Definition at line 222 of file PointGeom.cpp.

223{
224 ASSERTL0(i == 0, "Index other than 0 is meaningless.");
225 // shared_this_ptr() returns const PointGeom, which cannot be
226 // returned.
227 return PointGeomSharedPtr(new PointGeom(*this));
228}
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:208
std::shared_ptr< PointGeom > PointGeomSharedPtr
Definition: Geometry.h:57

References ASSERTL0, and PointGeom().

Friends And Related Function Documentation

◆ operator!= [1/3]

bool operator!= ( const PointGeom x,
const PointGeom y 
)
friend

Definition at line 207 of file PointGeom.cpp.

208{
209 return (x.m_globalID != y.m_globalID);
210}

◆ operator!= [2/3]

bool operator!= ( const PointGeom x,
const PointGeom y 
)
friend

Definition at line 212 of file PointGeom.cpp.

213{
214 return (x.m_globalID != y->m_globalID);
215}

◆ operator!= [3/3]

bool operator!= ( const PointGeom x,
const PointGeom y 
)
friend

Definition at line 217 of file PointGeom.cpp.

218{
219 return (x->m_globalID != y.m_globalID);
220}

◆ operator== [1/3]

bool operator== ( const PointGeom x,
const PointGeom y 
)
friend

Determine equivalence by the ids. No matter what the position, if the ids are the same, then they are equivalent, and vice versa.

Definition at line 192 of file PointGeom.cpp.

193{
194 return (x.m_globalID == y.m_globalID);
195}

◆ operator== [2/3]

bool operator== ( const PointGeom x,
const PointGeom y 
)
friend

Definition at line 197 of file PointGeom.cpp.

198{
199 return (x.m_globalID == y->m_globalID);
200}

◆ operator== [3/3]

bool operator== ( const PointGeom x,
const PointGeom y 
)
friend

Definition at line 202 of file PointGeom.cpp.

203{
204 return (x->m_globalID == y.m_globalID);
205}