Skip to content
Snippets Groups Projects
Commit f3427706 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[facet][box] use assign instead of resize

parent 47e6b16d
No related branches found
No related tags found
1 merge request!1545Some fixes for coupling moving meshes.
...@@ -204,7 +204,7 @@ public: ...@@ -204,7 +204,7 @@ public:
// determine all bulk elements that couple to low dim elements // determine all bulk elements that couple to low dim elements
const auto& bulkMap = couplingMapperPtr_->couplingMap(bulkGridId, lowDimGridId); const auto& bulkMap = couplingMapperPtr_->couplingMap(bulkGridId, lowDimGridId);
bulkElemIsCoupled_.resize(bulkProblem->fvGridGeometry().gridView().size(0), false); bulkElemIsCoupled_.assign(bulkProblem->fvGridGeometry().gridView().size(0), false);
std::for_each( bulkMap.begin(), std::for_each( bulkMap.begin(),
bulkMap.end(), bulkMap.end(),
[&] (const auto& entry) { bulkElemIsCoupled_[entry.first] = true; }); [&] (const auto& entry) { bulkElemIsCoupled_[entry.first] = true; });
......
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