Skip to content
Snippets Groups Projects
Commit b63e32b0 authored by webmanue's avatar webmanue
Browse files

adapt example to updates in Mesh

- topological dimension no longer required
- add const
parent 864ad7be
No related branches found
No related tags found
No related merge requests found
Pipeline #135474 passed
......@@ -41,8 +41,7 @@ using BoundaryCondition = cpppetsc::MeshBoundaryCondition<Mesh>;
constexpr auto number_of_vertices_per_element = Mesh::size_type{2};
constexpr auto number_of_elements = Mesh::size_type{2};
constexpr auto number_of_vertices = Mesh::size_type{2};
constexpr auto coordinate_dimension = Mesh::CoordinateDimension{3};
constexpr auto topological_dimension = Mesh::TopologicalDimension{1};
constexpr auto coordinate_dimension = Mesh::size_type{3};
constexpr auto dof_per_vertex = Mesh::size_type{6};
constexpr auto dof_per_element = Mesh::size_type{0};
......@@ -121,21 +120,21 @@ int main(int argc, char **argv) {
// Let's create the mesh and an assembler.
const auto mesh = Mesh::fromConnectivity(
topological_dimension, coordinate_dimension, connectivity,
number_of_vertices, dof_per_vertex, 0);
const auto mesh =
Mesh::fromConnectivity(coordinate_dimension, connectivity,
number_of_vertices, dof_per_vertex, 0);
auto assembler = GroupAssembler();
auto &element_assembler = assembler.get<0>();
auto &force_assembler = assembler.get<1>();
Properties properties = {young_modulus,
shear_modulus,
shear_correction_factor,
shear_correction_factor,
area,
area_moment,
area_moment,
polar_moment};
const Properties properties = {young_modulus,
shear_modulus,
shear_correction_factor,
shear_correction_factor,
area,
area_moment,
area_moment,
polar_moment};
// Depending on whether we use MPI, our mesh may be distributed and not all
// elements are present on this computational node.
......
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