Skip to content
Snippets Groups Projects
Commit 04f98424 authored by Samuel Burbulla's avatar Samuel Burbulla
Browse files

[1d][facet] Initialize this pointer in vertex entity correctly using emplace_back.

parent c533051b
No related branches found
No related tags found
1 merge request!61[1d][facet] Initialize this pointer in vertex entity correctly using emplace_back.
Pipeline #19465 passed
......@@ -69,9 +69,11 @@ template <int dimgrid, int dimworld>
/** \brief Insert a vertex into the coarse grid */
void insertVertex(const FieldVector<ctype,dimworld>& pos) override {
std::get<0>(grid_->entityImps_[0]).push_back(FoamGridEntityImp<0, dimgrid, dimworld> (0, // level
pos, // position
grid_->getNextFreeId()));
std::get<0>(grid_->entityImps_[0]).emplace_back(
0, // level
pos, // position
grid_->getNextFreeId()
);
vertexArray_.push_back(&*std::get<0>(grid_->entityImps_[0]).rbegin());
}
......
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