43 #include <boost/array.hpp> 46 #include <lifev/core/LifeV.hpp> 186 return M_coor.size();
198 out <<
" Coordinates = ";
199 for (UInt i (0); i < qp.M_coor.size(); ++i)
201 out << qp.M_coor[i] <<
", ";
203 out <<
" Weight = " << qp.M_weight;
222 ASSERT (0 < M_coor.size(),
" No x coordinate for this quadrature point");
229 ASSERT (1 < M_coor.size(),
" No y coordinate for this quadrature point");
236 ASSERT (2 < M_coor.size(),
" No z coordinate for this quadrature point");
243 ASSERT (i < M_coor.size(),
" Error in the coordinate for this quadrature point");
QuadraturePoint(Real x, Real weight)
Full constructor for 1D.
const Real & z() const
Getter for the third coordinate.
const GeoVector & coor() const
Getter for the full vector of coordinates.
QuadraturePoint(Real x, Real y, Real weight)
Full constructor for 2D.
QuadraturePoint(const GeoVector &coor, const Real &weight, const UInt &spaceDim)
Multidimension constructor with specified dimension.
QuadraturePoint()
Empty constructor (all zero data).
boost::numeric::ublas::vector< Real > GeoVector
virtual ~QuadraturePoint()
Destructor.
void updateInverseJacobian(const UInt &iQuadPt)
const Real & y() const
Getter for the second coordinate.
const Real & weight() const
Getter for the weight.
QuadraturePoint - Simple container for a point of a quadrature rule.
QuadraturePoint(Real x, Real y, Real z, Real weight)
Full constructor for 3D.
QuadraturePoint(const QuadraturePoint &qp)
Simple copy constructor.
double Real
Generic real data.
const Real & x() const
Getter for the first coordinate.
QuadraturePoint(const GeoVector &coor, const Real &weight)
Full multidimension constructor.
QuadraturePoint(const QuadraturePoint &qp, const UInt spaceDim)
Import from another dimension.
const Real & coor(const UInt &i) const
Getter for the coordinate (0<=i)
Real dimension() const
Returns the dimension of the quadPoint.
uint32_type UInt
generic unsigned integer (used mainly for addressing)