37 std::vector<std::unique_ptr<MeshLib::IntegrationPointWriter>>
const&
38 _integration_point_writer,
40 LocalAssemblersVector& local_assemblers)
42 for (
auto const& ip_writer : _integration_point_writer)
45 auto const& name = ip_writer->name();
50 auto const& mesh_property =
51 *mesh_properties.template getPropertyVector<double>(name);
54 if (mesh_property.getMeshItemType() !=
60 auto const ip_meta_data =
61 getIntegrationPointMetaData(mesh_properties, name);
64 if (ip_meta_data.n_components !=
65 mesh_property.getNumberOfGlobalComponents())
68 "Different number of components in meta data ({:d}) than in "
69 "the integration point field data for '{:s}': {:d}.",
70 ip_meta_data.n_components, name,
71 mesh_property.getNumberOfGlobalComponents());
74 INFO(
"Setting initial integration point data for '{}'", name);
80 std::size_t position = 0;
81 for (
auto& local_asm : local_assemblers)
83 std::size_t
const integration_points_read =
84 local_asm->setIPDataInitialConditions(
85 name_transformed, &mesh_property[position],
86 ip_meta_data.integration_order);
91 position += integration_points_read * ip_meta_data.n_components;