21 std::string
const& name,
unsigned const num_comp,
22 auto&& flattened_ip_data_accessor,
23 auto const& local_assemblers)
28 for (std::size_t i = 0; i < local_assemblers.size(); ++i)
30 auto const& loc_asm = *local_assemblers[i];
31 auto const& ip_data = flattened_ip_data_accessor(loc_asm);
32 assert(ip_data.size() % num_comp == 0);
34 static_cast<Eigen::Index
>(ip_data.size() / num_comp);
35 Eigen::Map<const Eigen::MatrixXd> ip_data_mapped{ip_data.data(),
38 Eigen::Map<Eigen::VectorXd>{&prop_vec[i * num_comp], num_comp} =
39 ip_data_mapped.rowwise().mean();
47 std::vector<std::unique_ptr<LAIntf>>
const& local_assemblers)
49 auto const callback = [&cell_average_data, &local_assemblers](
50 std::string
const& name,
51 unsigned const num_comp,
52 auto&& flattened_ip_data_accessor)
55 flattened_ip_data_accessor,
61 LAIntf::getReflectionDataForOutput(), callback);