57 Eigen::MatrixXd
const& primary_variables_mat,
58 std::vector<std::reference_wrapper<ProcessVariable>>
const& pv_refs,
60 Eigen::Ref<Eigen::VectorXd>
61 interpolated_primary_variables)
63 Eigen::Index component_flattened = 0;
68 for (
auto pv_ref : pv_refs)
70 auto const& pv = pv_ref.get();
71 auto const num_comp = pv.getNumberOfGlobalComponents();
72 auto const shp_fct_order = pv.getShapeFunctionOrder();
73 auto const N = ns_and_weight.
N(shp_fct_order);
75 for (
auto comp =
decltype(num_comp){0}; comp < num_comp; ++comp)
81 interpolated_primary_variables[component_flattened] =
83 primary_variables_mat.col(component_flattened).head(N.size());
84 component_flattened++;