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

[Extern] Store elements instead of elementPointers

parent 451c0a54
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ GridEvaluator<LocalVector, GridView>::GridEvaluator(
global[2] = zCoordinates[zi];
auto const element = hApproximation.findEntity(global);
localInfo[xi][zi] =
std::make_pair(element, element->geometry().local(global));
std::make_pair(element, element.geometry().local(global));
}
}
}
......
......@@ -13,8 +13,6 @@
template <class LocalVector, class GridView> class GridEvaluator {
using Element = typename GridView::Grid::template Codim<0>::Entity;
using ElementPointer =
typename GridView::Grid::template Codim<0>::EntityPointer;
public:
GridEvaluator(ConvexPolyhedron<LocalVector> const &weakPatch,
......@@ -27,7 +25,7 @@ template <class LocalVector, class GridView> class GridEvaluator {
Dune::BlockVector<Dune::FieldVector<double, 1>> zCoordinates;
private:
std::vector<std::vector<std::pair<ElementPointer, LocalVector>>> localInfo;
std::vector<std::vector<std::pair<Element, LocalVector>>> localInfo;
};
template <class ProgramState, class VertexBasis, class GridView>
......
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