Public Member Functions | |
Bernstein (int order) | |
bool | supportsCellTypePair (const CellType &maximalCellType, const CellType &cellType) const |
Inform caller as to whether a given cell type is supported. | |
void | print (std::ostream &os) const |
int | order () const |
int | nReferenceDOFsWithoutFacets (const CellType &maximalCellType, const CellType &cellType) const |
void | getReferenceDOFs (const CellType &maximalCellType, const CellType &cellType, Array< Array< Array< int > > > &dofs) const |
void | refEval (const CellType &cellType, const Array< Point > &pts, const SpatialDerivSpecifier &deriv, Array< Array< Array< double > > > &result, int verbosity=0) const |
Handleable interface | |
int | order_ |
static Array< int > | makeRange (int low, int high) |
void | evalOnLine (const Point &pt, const MultiIndex &deriv, Array< double > &result) const |
void | evalOnTriangle (const Point &pt, const MultiIndex &deriv, Array< double > &result) const |
void | evalOnTet (const Point &pt, const MultiIndex &deriv, Array< double > &result) const |
Definition at line 43 of file SundanceBernstein.hpp.
Bernstein::Bernstein | ( | int | order | ) |
Definition at line 43 of file SundanceBernstein.cpp.
void Bernstein::evalOnLine | ( | const Point & | pt, | |
const MultiIndex & | deriv, | |||
Array< double > & | result | |||
) | const [private] |
evaluate on a line cell
Definition at line 292 of file SundanceBernstein.cpp.
References Sundance::MultiIndex::order(), order(), order_, and Sundance::value.
Referenced by refEval().
void Bernstein::evalOnTet | ( | const Point & | pt, | |
const MultiIndex & | deriv, | |||
Array< double > & | result | |||
) | const [private] |
evaluate on a tet cell
Definition at line 412 of file SundanceBernstein.cpp.
References Sundance::MultiIndex::firstOrderDirection(), Sundance::MultiIndex::order(), order_, and Sundance::value.
Referenced by refEval().
void Bernstein::evalOnTriangle | ( | const Point & | pt, | |
const MultiIndex & | deriv, | |||
Array< double > & | result | |||
) | const [private] |
evaluate on a triangle cell
Definition at line 334 of file SundanceBernstein.cpp.
References Sundance::MultiIndex::firstOrderDirection(), Sundance::MultiIndex::order(), order(), order_, SUNDANCE_OUT, Sundance::value, Sundance::ADReal::value(), and Playa::ObjectWithVerbosity::verb().
Referenced by refEval().
void Bernstein::getReferenceDOFs | ( | const CellType & | maximalCellType, | |
const CellType & | cellType, | |||
Array< Array< Array< int > > > & | dofs | |||
) | const [virtual] |
permuted from (0,1,2) to (1,2,0) for UFC ordering
Implements Sundance::BasisDOFTopologyBase.
Definition at line 144 of file SundanceBernstein.cpp.
References Sundance::LineCell, makeRange(), order(), Sundance::PointCell, Sundance::TetCell, and Sundance::TriangleCell.
Array< int > Bernstein::makeRange | ( | int | low, | |
int | high | |||
) | [static, private] |
int Bernstein::nReferenceDOFsWithoutFacets | ( | const CellType & | maximalCellType, | |
const CellType & | cellType | |||
) | const [virtual] |
return the number of nodes for this basis on the given cell type
Implements Sundance::BasisDOFTopologyBase.
Definition at line 98 of file SundanceBernstein.cpp.
References Sundance::BrickCell, Sundance::LineCell, order_, Sundance::PointCell, Sundance::QuadCell, Sundance::TetCell, and Sundance::TriangleCell.
int Sundance::Bernstein::order | ( | ) | const [inline, virtual] |
Implements Sundance::BasisFamilyBase.
Definition at line 61 of file SundanceBernstein.hpp.
References order_.
Referenced by evalOnLine(), evalOnTriangle(), and getReferenceDOFs().
void Bernstein::print | ( | std::ostream & | os | ) | const [virtual] |
Implements Playa::Printable.
Definition at line 93 of file SundanceBernstein.cpp.
References order_.
void Bernstein::refEval | ( | const CellType & | cellType, | |
const Array< Point > & | pts, | |||
const SpatialDerivSpecifier & | deriv, | |||
Array< Array< Array< double > > > & | result, | |||
int | verbosity = 0 | |||
) | const [virtual] |
Implements Sundance::BasisReferenceEvaluationBase.
Definition at line 244 of file SundanceBernstein.cpp.
References evalOnLine(), evalOnTet(), evalOnTriangle(), Sundance::SpatialDerivSpecifier::isIdentity(), Sundance::SpatialDerivSpecifier::isPartial(), Sundance::LineCell, Sundance::SpatialDerivSpecifier::mi(), Sundance::PointCell, Sundance::TetCell, and Sundance::TriangleCell.
bool Bernstein::supportsCellTypePair | ( | const CellType & | maximalCellType, | |
const CellType & | cellType | |||
) | const [virtual] |
Inform caller as to whether a given cell type is supported.
Implements Sundance::BasisDOFTopologyBase.
Definition at line 51 of file SundanceBernstein.cpp.
References Sundance::LineCell, Sundance::PointCell, Sundance::TetCell, and Sundance::TriangleCell.
int Sundance::Bernstein::order_ [private] |
Definition at line 89 of file SundanceBernstein.hpp.
Referenced by evalOnLine(), evalOnTet(), evalOnTriangle(), nReferenceDOFsWithoutFacets(), order(), and print().