49 #ifndef INTREPID_ADAPTIVESPARSEGRIDINTERFACE_HPP
50 #define INTREPID_ADAPTIVESPARSEGRIDINTERFACE_HPP
62 template<
class Scalar,
class UserVector>
104 std::vector<EIntrepidBurkardt> rule1D,
105 std::vector<EIntrepidGrowth> growth1D,
116 std::vector<Scalar> & input) = 0;
132 UserVector & input) = 0;
139 std::vector<int> index);
144 void init(UserVector & output);
149 void getRule(std::vector<EIntrepidBurkardt> & rule1D);
154 void getGrowth(std::vector<EIntrepidGrowth> & growth1D);
std::vector< EIntrepidGrowth > growth1D_
The user defined 1D growth rules.
void getRule(std::vector< EIntrepidBurkardt > &rule1D)
Return user defined 1D quadrature rules.
virtual ~AdaptiveSparseGridInterface()
Destructor.
int maxLevel_
The maximum allowable level of quadrature.
Scalar getInitialDiff()
Return initial error indicator.
Scalar initialDiff_
The initial contribution to the integral.
virtual Scalar error_indicator(UserVector &input)=0
User defined error indicator function.
int getDimension()
Return dimension of integration domain.
Definition file for the Intrepid::AdaptiveSparseGridInterface class.
void init(UserVector &output)
Compute initial quantities for sparse grid adaptation.
AdaptiveSparseGridInterface(int dimension, std::vector< EIntrepidBurkardt > rule1D, std::vector< EIntrepidGrowth > growth1D, int maxLevel, bool isNormalized)
Constructor starts with index [1,...,1].
Header file for the Intrepid::CubatureTensorSorted class.
bool isNormalized()
Return whether or not cubature weights are normalized.
int dimension_
The dimension of the integration domain.
virtual bool max_level(std::vector< int > index)
User defined test for maximum level of cubature.
virtual void eval_cubature(UserVector &output, CubatureTensorSorted< Scalar > &cubRule)
Evaluate the cubature rule.
void getGrowth(std::vector< EIntrepidGrowth > &growth1D)
Return user defined 1D growth rules.
virtual void eval_integrand(UserVector &output, std::vector< Scalar > &input)=0
Evaluate the integrand function.
Utilizes 1D cubature (integration) rules contained in the library sandia_rules (John Burkardt...
bool isNormalized_
Whether or not to normalize the weights.
std::vector< EIntrepidBurkardt > rule1D_
The user defined 1D cubature rules.