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

Implement PreBasisFactory for LagrangeDGBasis

parent 3e500ee8
Branches
No related tags found
No related merge requests found
...@@ -291,6 +291,46 @@ protected: ...@@ -291,6 +291,46 @@ protected:
namespace BasisBuilder {
namespace Imp {
template<std::size_t k>
class LagrangeDGPreBasisFactory
{
public:
static const std::size_t requiredMultiIndexSize = 1;
template<class MultiIndex, class GridView>
auto makePreBasis(const GridView& gridView) const
{
return LagrangeDGPreBasis<GridView, k, MultiIndex>(gridView);
}
};
} // end namespace BasisBuilder::Imp
/**
* \brief Create a pre-basis factory that can create a LagrangeDG pre-basis
*
* \ingroup FunctionSpaceBasesImplementations
*
* \tparam k The polynomial order of the ansatz functions
*/
template<std::size_t k>
auto lagrangeDG()
{
return Imp::LagrangeDGPreBasisFactory<k>();
}
} // end namespace BasisBuilder
// ***************************************************************************** // *****************************************************************************
// This is the actual global basis implementation based on the reusable parts. // This is the actual global basis implementation based on the reusable parts.
// ***************************************************************************** // *****************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment