66 libmesh_error_msg(
"Invalid dimension _dim = " <<
_dim);
73 const std::vector<Real> & ,
94 std::pair<Real, Real> new_range)
97 libmesh_assert_equal_to (
_dim, 1);
100 h_new = new_range.second - new_range.first,
101 h_old = old_range.second - old_range.first;
104 libmesh_assert_greater (h_new, 0.);
105 libmesh_assert_greater (h_old, 0.);
108 libmesh_assert_greater (
_points.size(), 0);
111 Real scfact = h_new/h_old;
114 for (std::size_t i=0; i<
_points.size(); i++)
116 _points[i](0) = new_range.first +
117 (
_points[i](0) - old_range.first) * scfact;
130 const unsigned int np = q1D.
n_points();
138 for (
unsigned int j=0; j<np; j++)
139 for (
unsigned int i=0; i<np; i++)
156 const unsigned int np = q1D.
n_points();
164 for (
unsigned int k=0; k<np; k++)
165 for (
unsigned int j=0; j<np; j++)
166 for (
unsigned int i=0; i<np; i++)
183 const unsigned int n_points1D = q1D.
n_points();
184 const unsigned int n_points2D = q2D.
n_points();
186 _points.resize (n_points1D * n_points2D);
187 _weights.resize (n_points1D * n_points2D);
191 for (
unsigned int j=0; j<n_points1D; j++)
192 for (
unsigned int i=0; i<n_points2D; i++)
virtual void init(const ElemType type=INVALID_ELEM, unsigned int p_level=0)
Point qp(const unsigned int i) const
The base class for all geometric element types.
std::vector< Point > _points
std::vector< Real > _weights
void tensor_product_prism(const QBase &q1D, const QBase &q2D)
virtual void init_2D(const ElemType, unsigned int=0)
virtual void init_1D(const ElemType type=INVALID_ELEM, unsigned int p_level=0)=0
void tensor_product_hex(const QBase &q1D)
virtual void init_0D(const ElemType type=INVALID_ELEM, unsigned int p_level=0)
unsigned int n_points() const
void print_info(std::ostream &os=libMesh::out) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void scale(std::pair< Real, Real > old_range, std::pair< Real, Real > new_range)
void tensor_product_quad(const QBase &q1D)
Real w(const unsigned int i) const
virtual ElemType type() const =0
std::ostream & operator<<(std::ostream &os, const FEAbstract &fe)
A geometric point in (x,y,z) space.
virtual void init_3D(const ElemType, unsigned int=0)
Base class for all quadrature families and orders.