Skip to content
Snippets Groups Projects
Commit 0be0e8d6 authored by Yonghui56's avatar Yonghui56
Browse files

Moved the initialization to the initializer list.

parent c7714e98
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,9 @@ public:
_integration_method(integration_order),
_shape_matrices(initShapeMatrices<ShapeFunction, ShapeMatricesType,
IntegrationMethod, GlobalDim>(
element, is_axially_symmetric, _integration_method))
element, is_axially_symmetric, _integration_method)),
_darcy_velocities(GlobalDim,
std::vector<double>(_integration_method.getNumberOfPoints()))
{
}
......@@ -103,6 +105,7 @@ public:
auto const& wp = _integration_method.getWeightedPoint(ip);
auto const k = _process_data.hydraulic_conductivity(t, pos)[0];
local_K.noalias() += sm.dNdx.transpose() * k * sm.dNdx * sm.detJ *
sm.integralMeasure * wp.getWeight();
......@@ -193,9 +196,7 @@ private:
IntegrationMethod const _integration_method;
std::vector<ShapeMatrices> _shape_matrices;
std::vector<std::vector<double>> _darcy_velocities
= std::vector<std::vector<double>>(
GlobalDim, std::vector<double>(_integration_method.getNumberOfPoints()));
std::vector<std::vector<double>> _darcy_velocities;
};
......
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