Skip to content
Snippets Groups Projects
Commit c155d277 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL/ConstraintDirichletBC] _bulk_face_id isn't needed anymore.

parent 2f8cd6c3
No related branches found
No related tags found
No related merge requests found
...@@ -84,8 +84,7 @@ public: ...@@ -84,8 +84,7 @@ public:
std::vector<std::pair<std::size_t, unsigned>> bulk_ids) std::vector<std::pair<std::size_t, unsigned>> bulk_ids)
: _surface_element(surface_element), : _surface_element(surface_element),
_integration_method(integration_order), _integration_method(integration_order),
_bulk_element_id(bulk_ids[_surface_element.getID()].first), _bulk_element_id(bulk_ids[_surface_element.getID()].first)
_bulk_face_id(bulk_ids[_surface_element.getID()].second)
{ {
(void)local_matrix_size; // unused, but needed for the interface (void)local_matrix_size; // unused, but needed for the interface
...@@ -121,6 +120,7 @@ public: ...@@ -121,6 +120,7 @@ public:
std::size_t const n_integration_points = std::size_t const n_integration_points =
_integration_method.getNumberOfPoints(); _integration_method.getNumberOfPoints();
auto const bulk_face_id = bulk_ids[_surface_element.getID()].second;
std::vector< std::vector<
typename ShapeMatricesType::ShapeMatrices, typename ShapeMatricesType::ShapeMatrices,
Eigen::aligned_allocator<typename ShapeMatricesType::ShapeMatrices>> Eigen::aligned_allocator<typename ShapeMatricesType::ShapeMatrices>>
...@@ -137,7 +137,7 @@ public: ...@@ -137,7 +137,7 @@ public:
auto const& wp = _integration_method.getWeightedPoint(ip); auto const& wp = _integration_method.getWeightedPoint(ip);
auto bulk_element_point = MeshLib::getBulkElementPoint( auto bulk_element_point = MeshLib::getBulkElementPoint(
bulk_mesh, _bulk_element_id, _bulk_face_id, wp); bulk_mesh, _bulk_element_id, bulk_face_id, wp);
_ip_data.emplace_back(shape_matrices[ip].detJ, _ip_data.emplace_back(shape_matrices[ip].detJ,
shape_matrices[ip].integralMeasure, shape_matrices[ip].integralMeasure,
wp.getWeight(), wp.getWeight(),
...@@ -188,7 +188,6 @@ private: ...@@ -188,7 +188,6 @@ private:
IntegrationMethod const _integration_method; IntegrationMethod const _integration_method;
std::size_t const _bulk_element_id; std::size_t const _bulk_element_id;
unsigned const _bulk_face_id;
MathLib::Vector3 _surface_element_normal; MathLib::Vector3 _surface_element_normal;
}; };
......
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