[dune-pdelab] [dune-pdelab-commit] [Commit] dune-pdelab - 043f015: [LocalFunctionSpace] Export subspace depth for LFSIndexCache
Christian Engwer
christian.engwer at uni-muenster.de
Thu Sep 5 20:27:12 CEST 2013
Oh and it seeems you missed one of the
complete_dof_index(dof_index);
calls:
dune/pdelab/ordering/subordering.hh:186:9: error:
use of undeclared identifier 'complete_dof_index'
Cheers
Christian
On Thu, Sep 05, 2013 at 06:29:10PM +0200, Steffen Müthing wrote:
> New commit, appeared at Thu Sep 5 18:29:10 2013 +0200
> as part of the following ref changes:
>
> branch refs/heads/master updated from ea37beb -> 23ba044
>
> Browsable version: http://cgit.dune-project.org/repositories/dune-pdelab/commit/?id=043f015a9fdbb265f9e871fee649928a4e4f6f44
>
> ======================================================================
>
> commit 043f015a9fdbb265f9e871fee649928a4e4f6f44
> Author: Steffen Müthing <muething at dune-project.org>
> Date: Thu Sep 5 17:34:25 2013 +0200
>
> [LocalFunctionSpace] Export subspace depth for LFSIndexCache
>
> Due to the recent changes to the way subspaces work, the LFSIndexCache
> needs to know how the length of the path from the subspace to the root
> of the underlying tree because it needs to remove that portion of the
> treeindex before invoking the orderings for the subtree (those expect
> to get a shorter DOFIndex than what we have right now, as we have cut
> off the upper part of the tree in the subspace).
>
> This patch adds a new method subSpaceLength(), which returns 0 for
> regular LocalFunctionSpaces and a positive value for the root
> LocalFunctionSpace of the LocalFunctionSpace tree generated from a
> GridFunctionSubSpace.
>
> dune/pdelab/gridfunctionspace/localfunctionspace.hh | 5 +++++
> dune/pdelab/gridfunctionspace/subspace.hh | 5 +++++
> dune/pdelab/gridfunctionspace/subspacelocalfunctionspace.hh | 5 +++++
> 3 files changed, 15 insertions(+)
>
>
>
> diff --git a/dune/pdelab/gridfunctionspace/localfunctionspace.hh b/dune/pdelab/gridfunctionspace/localfunctionspace.hh
> index 5e2d9d9..ae00944 100644
> --- a/dune/pdelab/gridfunctionspace/localfunctionspace.hh
> +++ b/dune/pdelab/gridfunctionspace/localfunctionspace.hh
> @@ -208,6 +208,11 @@ namespace Dune {
> return n;
> }
>
> + std::size_t subSpaceDepth() const
> + {
> + return 0;
> + }
> +
> //! \brief get maximum possible size (which is maxLocalSize from grid function space)
> typename Traits::IndexContainer::size_type maxSize () const
> {
> diff --git a/dune/pdelab/gridfunctionspace/subspace.hh b/dune/pdelab/gridfunctionspace/subspace.hh
> index 0c603b9..adc272c 100644
> --- a/dune/pdelab/gridfunctionspace/subspace.hh
> +++ b/dune/pdelab/gridfunctionspace/subspace.hh
> @@ -199,6 +199,11 @@ namespace Dune {
> >::type
> > Ordering;
>
> + std::size_t subSpaceDepth() const
> + {
> + return TypeTree::TreePathSize<SubSpacePath>::value;
> + }
> +
> //! Returns the ordering associated with this GridFunctionSubSpace.
> const Ordering& ordering() const
> {
> diff --git a/dune/pdelab/gridfunctionspace/subspacelocalfunctionspace.hh b/dune/pdelab/gridfunctionspace/subspacelocalfunctionspace.hh
> index 3c65fd2..750f309 100644
> --- a/dune/pdelab/gridfunctionspace/subspacelocalfunctionspace.hh
> +++ b/dune/pdelab/gridfunctionspace/subspacelocalfunctionspace.hh
> @@ -65,6 +65,11 @@ namespace Dune {
> complete_dof_index(di);
> }
>
> + std::size_t subSpaceDepth() const
> + {
> + return this->gridFunctionSpace().subSpaceDepth();
> + }
> +
> private:
>
> //! Extends DOFIndex up to the root of the original DOFIndex tree.
>
> _______________________________________________
> dune-pdelab-commit mailing list
> dune-pdelab-commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab-commit
--
Prof. Dr. Christian Engwer
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster
E-Mail christian.engwer at uni-muenster.de
Telefon +49 251 83-35067
FAX +49 251 83-32729
More information about the dune-pdelab
mailing list