Skip to content
Snippets Groups Projects
Commit 9fe2dd26 authored by Elias Pipping's avatar Elias Pipping
Browse files

Add an assertation

Note: This assumes that any vector used to construct a BasisGridFunction
already has the proper size. If you want to be able to write

  Vector vec; // unitialised
  BasisGridFunction func(vec);
  initialize(vec);

for some reason, then please revert this change and let me know.
parent a2c9e8d6
Branches
No related tags found
No related merge requests found
...@@ -217,7 +217,9 @@ class BasisGridFunction : ...@@ -217,7 +217,9 @@ class BasisGridFunction :
BaseType(basis.getGridView()), BaseType(basis.getGridView()),
basis_(basis), basis_(basis),
coefficients_(coefficients) coefficients_(coefficients)
{} {
assert(basis_.size() == coefficients_.size());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment