Skip to content
Snippets Groups Projects
Commit b12e4681 authored by Timo Koch's avatar Timo Koch Committed by Timo Koch
Browse files

[elements] Change vertex array to std::array for consistency with facet array

Add some asserts
parent f677d21b
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ namespace Dune {
}
FieldVector<double, dimworld> corner(int i) const {
assert(i < this->corners());
assert(vertex_.size()==this->corners());
assert(vertex_[i]!=nullptr);
return vertex_[i]->pos_;
}
......@@ -133,7 +136,7 @@ namespace Dune {
MarkState markState_;
FoamGridEntityImp<0, dimgrid, dimworld>* vertex_[2];
array<FoamGridEntityImp<0, dimgrid, dimworld>*, 2> vertex_;
array<FoamGridEntityImp<dimgrid-1, dimgrid, dimworld>*, 2> facet_;
......
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