49 #ifndef INTREPID_ADAPTIVESPARSEGRID_HPP 50 #define INTREPID_ADAPTIVESPARSEGRID_HPP 62 template<
class Scalar,
class UserVector>
72 typename std::multimap<Scalar,std::vector<int> > & indexSet,
73 UserVector & integralValue,
85 typename std::multimap<Scalar,std::vector<int> > & activeIndex,
86 std::set<std::vector<int> > & oldIndex,
87 UserVector & integralValue,
88 Scalar globalErrorIndicator,
101 typename std::multimap<Scalar,std::vector<int> > & activeIndex,
102 std::set<std::vector<int> > & oldIndex,
103 UserVector & integralValue,
105 Scalar globalErrorIndicator,
130 std::vector<int> index,
144 std::vector<int> index,
146 std::vector<EIntrepidBurkardt> rule1D,
147 std::vector<EIntrepidGrowth> growth1D,
158 std::vector<int> index,
160 std::set<std::vector<int> > inOldIndex,
174 int dimension,
int maxlevel,
175 std::vector<EIntrepidBurkardt> rule1D,
176 std::vector<EIntrepidGrowth> growth1D,
static void buildSparseGrid(CubatureTensorSorted< Scalar > &output, int dimension, int maxlevel, std::vector< EIntrepidBurkardt > rule1D, std::vector< EIntrepidGrowth > growth1D, bool isNormalized)
Build a classic isotropic sparse grid.
static Scalar refine_grid(typename std::multimap< Scalar, std::vector< int > > &indexSet, UserVector &integralValue, AdaptiveSparseGridInterface< Scalar, UserVector > &problem_data)
Update adaptive sparse grid.
static void build_diffRule(CubatureTensorSorted< Scalar > &outRule, std::vector< int > index, AdaptiveSparseGridInterface< Scalar, UserVector > &problem_data)
Given an index, build the corresponding differential cubature rule.
Builds general adaptive sparse grid rules (Gerstner and Griebel) using the 1D cubature rules in the I...
Header file for the Intrepid::AdaptiveSparseGridInterface class.
static bool isAdmissible(std::vector< int > index, int direction, std::set< std::vector< int > > inOldIndex, AdaptiveSparseGridInterface< Scalar, UserVector > &problem_data)
Check admissibility of an index set, outputs true if admissible.
Definition file for the Intrepid::AdaptiveSparseGrid class.
Utilizes 1D cubature (integration) rules contained in the library sandia_rules (John Burkardt...