Skip to content
Snippets Groups Projects
Commit 7daedd5f authored by Adrian Burri's avatar Adrian Burri
Browse files

Size added

[[Imported from SVN: r2790]]
parent 46d67206
No related branches found
No related tags found
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2: // vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_DISCRETEFUNCTION_HH #ifndef DUNE_DISCRETEFUNCTION_HH
#define DUNE_DISCRETEFUNCTION_HH #define DUNE_DISCRETEFUNCTION_HH
...@@ -90,6 +89,11 @@ namespace Dune { ...@@ -90,6 +89,11 @@ namespace Dune {
return asImp().name(); return asImp().name();
} }
//! The size of the discrete function
int size() const {
return asImp().size();
}
//! the implementation of an iterator to iterate efficient //! the implementation of an iterator to iterate efficient
//! over all dofs of a discrete function //! over all dofs of a discrete function
DofIteratorType dbegin () DofIteratorType dbegin ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment