Skip to content
Snippets Groups Projects
Commit a5d25ab9 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Store boundary_conditions size before for-loop.

parent f9b1921b
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ public:
std::vector<NumLib::IndexValueVector<GlobalIndexType>> const*
getKnownSolutions(double const t) const
{
for (std::size_t i=0; i<_boundary_conditions.size(); ++i) {
auto const n_bcs = _boundary_conditions.size();
for (std::size_t i=0; i<n_bcs; ++i) {
auto const& bc = *_boundary_conditions[i];
auto& dirichlet_storage = _dirichlet_bcs[i];
bc.getEssentialBCValues(t, dirichlet_storage);
......
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