Skip to content
Snippets Groups Projects
Commit 108d524e authored by Martin Nolte's avatar Martin Nolte
Browse files

bugfix (see revision 7808 in trunk)

[[Imported from SVN: r7809]]
parent 576acb03
Branches
Tags
No related merge requests found
......@@ -41,9 +41,6 @@ namespace Dune
private:
int node_;
int index_;
#ifndef NDEBUG
int count_;
#endif
public:
DofAccess ()
......@@ -54,18 +51,12 @@ namespace Dune
{
node_ = dofSpace->admin->mesh->node[ codimtype ];
index_ = dofSpace->admin->n0_dof[ codimtype ];
#ifndef NDEBUG
count_ = dofSpace->admin->n_dof[ codimtype ];
#endif
}
int operator() ( const Element *element, int subEntity, int i ) const
{
#ifndef NDEBUG
assert( node_ != -1 );
assert( subEntity < numSubEntities );
assert( i < count_ );
#endif
return element->dof[ node_ + subEntity ][ index_ + i ];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment