Skip to content
Snippets Groups Projects
Commit 98cf0756 authored by Max Kahnt's avatar Max Kahnt
Browse files

Assert that ignoreNodes are set before dereferencing.

parent 1793b046
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
#ifndef DUNE_SOLVERS_COMMON_CANIGNORE_HH
#define DUNE_SOLVERS_COMMON_CANIGNORE_HH
#include <cassert>
/** \brief Abstract base class for solvers and iterationsteps that are
* able to ignore degrees of freedom described by a bit field.
*/
......@@ -59,6 +61,7 @@ public:
*/
const BitVector& ignore() const
{
assert(hasIgnore());
return *ignoreNodes_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment