22 template<
class TFather>
26 enum {
Dim = TFather::Dim+1};
55 return TFather::NPoints()*fIntP->
NInt();
59 int ipf = ip/fIntP->
NInt();
60 int iploc = ip%(fIntP->
NInt());
61 TFather::Point(ipf,pos,w);
62 pos[
Dim-1] = fIntP->
Loc(iploc);
69 std::cout <<
"TPZPrInteg::SetOrder: number of integration points specified smaller than dimension\n";
73 TFather::SetOrder(ord,type);
81 std::cout <<
"TPZPrInteg::GetOrder: number of integration points specified smaller than dimension\n";
85 TFather::GetOrder(ord);
98 int fatmax = TFather::GetMaxOrder();
99 return (fatmax > fOrdKsi) ? fatmax :
fOrdKsi;
108 void Name(std::string &name)
const {
void GetOrder(TPZVec< int > &ord) const
long double W(int i) const
Returns weight for the ith point.
Templated vector implementation.
void Point(int ip, TPZVec< REAL > &pos, REAL &w) const
void Name(std::string &name) const
Returns the name of the cubature rule.
Abstract class defining integration rules. Numerical Integration.
TPZGaussRule * GetRule(int order, int type=0)
Returns a pointer to an gaussian integration rule with numint points. This method computes the number...
void SetOrder(TPZVec< int > &ord, int type=0)
virtual TPZIntPoints * PrismExtend(int order)
TPZPrInteg(TPZVec< int > &order)
int NInt() const
Returns number of integration points.
virtual TPZIntPoints * Clone() const
static TPZIntRuleList gIntRuleList
Static variable with list of all integration rules.
Contains the TPZIntRuleList class which creates instances of all integration rules for rapid selectio...
TPZPrInteg(const TPZPrInteg ©)
int64_t NElements() const
Returns the number of elements of the vector.
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
Contains the TPZGaussRule class which implements the Gaussian quadrature.
Prismatic extension of an integration rule. Numerical Integration.
long double Loc(int i) const
Returns location of the ith point.
Implements the Gaussian quadrature. Numerical Integration Abstract class.