64 Eigen::MatrixXd
const& primary_variables_mat,
65 std::vector<std::reference_wrapper<ProcessVariable>>
const& pv_refs,
67 Eigen::Ref<Eigen::VectorXd>
68 interpolated_primary_variables)
70 Eigen::Index component_flattened = 0;
75 for (
auto pv_ref : pv_refs)
77 auto const& pv = pv_ref.get();
78 auto const num_comp = pv.getNumberOfGlobalComponents();
79 auto const shp_fct_order = pv.getShapeFunctionOrder();
80 auto const N = ns_and_weight.
N(shp_fct_order);
82 for (
auto comp =
decltype(num_comp){0}; comp < num_comp; ++comp)
88 interpolated_primary_variables[component_flattened] =
90 primary_variables_mat.col(component_flattened).head(N.size());
91 component_flattened++;