Skip to content
Snippets Groups Projects
Commit ca16d49d authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Implement PreBasisFactory for PQ1NodalBasis

parent b0827eec
Branches
No related tags found
No related merge requests found
......@@ -285,6 +285,43 @@ protected:
namespace BasisBuilder {
namespace Imp {
class PQ1PreBasisFactory
{
public:
static const std::size_t requiredMultiIndexSize = 1;
template<class MultiIndex, class GridView>
auto makePreBasis(const GridView& gridView) const
{
return PQ1PreBasis<GridView, MultiIndex>(gridView);
}
};
} // end namespace BasisBuilder::Imp
/**
* \brief Create a pre-basis factory that can create a PQ_1 pre-basis
*
* \ingroup FunctionSpaceBasesImplementations
*
* \tparam k The polynomial order of ansatz functions
*/
auto pq1Nodal()
{
return Imp::PQ1PreBasisFactory();
}
} // end namespace BasisBuilder
/** \brief Nodal basis of a scalar first-order Lagrangian finite element space
*
* \ingroup FunctionSpaceBasesImplementations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment