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

[PL] RichardsComponentTransport: Save element id.

parent 079f7c96
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ public: ...@@ -103,7 +103,7 @@ public:
bool is_axially_symmetric, bool is_axially_symmetric,
unsigned const integration_order, unsigned const integration_order,
RichardsComponentTransportProcessData const& process_data) RichardsComponentTransportProcessData const& process_data)
: _element(element), : _element_id(element.getID()),
_process_data(process_data), _process_data(process_data),
_integration_method(integration_order) _integration_method(integration_order)
{ {
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
_integration_method.getNumberOfPoints(); _integration_method.getNumberOfPoints();
SpatialPosition pos; SpatialPosition pos;
pos.setElementID(_element.getID()); pos.setElementID(_element_id);
auto const num_nodes = ShapeFunction::NPOINTS; auto const num_nodes = ShapeFunction::NPOINTS;
auto p_nodal_values = auto p_nodal_values =
...@@ -307,7 +307,7 @@ public: ...@@ -307,7 +307,7 @@ public:
unsigned const n_integration_points = unsigned const n_integration_points =
_integration_method.getNumberOfPoints(); _integration_method.getNumberOfPoints();
auto const indices = NumLib::getIndices(_element.getID(), dof_table); auto const indices = NumLib::getIndices(_element_id, dof_table);
assert(!indices.empty()); assert(!indices.empty());
auto const local_x = current_solution.get(indices); auto const local_x = current_solution.get(indices);
...@@ -317,7 +317,7 @@ public: ...@@ -317,7 +317,7 @@ public:
cache, GlobalDim, n_integration_points); cache, GlobalDim, n_integration_points);
SpatialPosition pos; SpatialPosition pos;
pos.setElementID(_element.getID()); pos.setElementID(_element_id);
MaterialLib::Fluid::FluidProperty::ArrayType vars; MaterialLib::Fluid::FluidProperty::ArrayType vars;
...@@ -390,12 +390,12 @@ public: ...@@ -390,12 +390,12 @@ public:
std::vector<double>& cache) const override std::vector<double>& cache) const override
{ {
SpatialPosition pos; SpatialPosition pos;
pos.setElementID(_element.getID()); pos.setElementID(_element_id);
unsigned const n_integration_points = unsigned const n_integration_points =
_integration_method.getNumberOfPoints(); _integration_method.getNumberOfPoints();
auto const indices = NumLib::getIndices(_element.getID(), dof_table); auto const indices = NumLib::getIndices(_element_id, dof_table);
assert(!indices.empty()); assert(!indices.empty());
auto const local_x = current_solution.get(indices); auto const local_x = current_solution.get(indices);
...@@ -427,7 +427,7 @@ public: ...@@ -427,7 +427,7 @@ public:
} }
private: private:
MeshLib::Element const& _element; unsigned const _element_id;
RichardsComponentTransportProcessData const& _process_data; RichardsComponentTransportProcessData const& _process_data;
IntegrationMethod const _integration_method; IntegrationMethod const _integration_method;
......
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