Commit 2ead81d4 authored by Andreas Dedner's avatar Andreas Dedner

add specialization for DGLFE space - used same base implementation as non DG version

parent f7a0f4fb
Pipeline #18034 failed with stage
in 62 minutes and 6 seconds
...@@ -93,15 +93,14 @@ namespace Dune ...@@ -93,15 +93,14 @@ namespace Dune
const std::vector< BasisFunctionSetType >& childBasisSets_; const std::vector< BasisFunctionSetType >& childBasisSets_;
const std::vector< std::vector<double> >& childDofs_; const std::vector< std::vector<double> >& childDofs_;
}; };
} // namespce Impl
// a detailed description is given in MR308 // a detailed description is given in MR308
// https://gitlab.dune-project.org/dune-fem/dune-fem/merge_requests/308 // https://gitlab.dune-project.org/dune-fem/dune-fem/merge_requests/308
template< class LFEMap, class FunctionSpace, template< class > class Storage > template< class LFESpace >
struct DefaultLocalRestrictProlong< LocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > > struct DefaultLocalRestrictProlongLFE
{ {
typedef LocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > DiscreteFunctionSpaceType; typedef LFESpace DiscreteFunctionSpaceType;
typedef DefaultLocalRestrictProlong< DiscreteFunctionSpaceType > ThisType; typedef DefaultLocalRestrictProlongLFE< DiscreteFunctionSpaceType > ThisType;
typedef typename DiscreteFunctionSpaceType::DomainFieldType DomainFieldType; typedef typename DiscreteFunctionSpaceType::DomainFieldType DomainFieldType;
typedef typename DiscreteFunctionSpaceType::BasisFunctionSetType BasisFunctionSetType; typedef typename DiscreteFunctionSpaceType::BasisFunctionSetType BasisFunctionSetType;
...@@ -109,7 +108,7 @@ namespace Dune ...@@ -109,7 +108,7 @@ namespace Dune
typedef typename EntityType::LocalGeometry LocalGeometryType; typedef typename EntityType::LocalGeometry LocalGeometryType;
typedef typename EntityType::EntitySeed EntitySeedType; typedef typename EntityType::EntitySeed EntitySeedType;
DefaultLocalRestrictProlong (const DiscreteFunctionSpaceType &space) DefaultLocalRestrictProlongLFE (const DiscreteFunctionSpaceType &space)
: space_( space ), childSeeds_(0), childDofs_(0) : space_( space ), childSeeds_(0), childDofs_(0)
{} {}
...@@ -187,7 +186,27 @@ namespace Dune ...@@ -187,7 +186,27 @@ namespace Dune
mutable std::vector< EntitySeedType > childSeeds_; mutable std::vector< EntitySeedType > childSeeds_;
mutable std::vector< std::vector<double> > childDofs_; mutable std::vector< std::vector<double> > childDofs_;
}; };
} // namespce Impl
template< class LFEMap, class FunctionSpace, template< class > class Storage >
struct DefaultLocalRestrictProlong< LocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > >
: public Impl::DefaultLocalRestrictProlongLFE
< LocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > >
{
typedef Impl::DefaultLocalRestrictProlongLFE
< LocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > > BaseType;
using BaseType::BaseType;
};
template< class LFEMap, class FunctionSpace, template< class > class Storage >
struct DefaultLocalRestrictProlong< DiscontinuousLocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > >
: public Impl::DefaultLocalRestrictProlongLFE
< DiscontinuousLocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > >
{
typedef Impl::DefaultLocalRestrictProlongLFE
< DiscontinuousLocalFiniteElementSpace< LFEMap, FunctionSpace, Storage > > BaseType;
using BaseType::BaseType;
};
} // namespace Fem } // namespace Fem
} // namespace Dune } // namespace Dune
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment