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

[PL/RCT] Avoid vector sizes mismatch

Using dynamic size vector mapping for the vector in number of integration points.
parent c9c17aaf
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,8 @@ LocalAssemblerData<ShapeFunction, IntegrationMethod, GlobalDim>::
auto const local_x = x[process_id]->get(indices);
cache.clear();
auto cache_vec = MathLib::createZeroedVector<LocalVectorType>(
auto cache_vec = MathLib::createZeroedVector<
Eigen::Matrix<double, 1, Eigen::Dynamic, Eigen::RowMajor>>(
cache, n_integration_points);
for (unsigned ip = 0; ip < n_integration_points; ++ip)
......
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