Skip to content
Snippets Groups Projects
Commit 94854183 authored by wenqing's avatar wenqing
Browse files

[LIE/] Use explicit type for gravity_vec in HydroMechanicsLocalAssemblerFracture

parent 6fd6bbe6
No related branches found
No related tags found
No related merge requests found
...@@ -196,8 +196,8 @@ void HydroMechanicsLocalAssemblerFracture<ShapeFunctionDisplacement, ...@@ -196,8 +196,8 @@ void HydroMechanicsLocalAssemblerFracture<ShapeFunctionDisplacement,
Eigen::MatrixXd const global2local_rotation = Eigen::MatrixXd const global2local_rotation =
R.template topLeftCorner<ShapeFunctionPressure::DIM, GlobalDim>(); R.template topLeftCorner<ShapeFunctionPressure::DIM, GlobalDim>();
auto const& gravity_vec = DimVectorType const gravity_vec =
(global2local_rotation * _process_data.specific_body_force).eval(); global2local_rotation * _process_data.specific_body_force;
ParameterLib::SpatialPosition x_position; ParameterLib::SpatialPosition x_position;
x_position.setElementID(_element.getID()); x_position.setElementID(_element.getID());
......
...@@ -99,6 +99,7 @@ private: ...@@ -99,6 +99,7 @@ private:
GlobalDim>; GlobalDim>;
using GlobalDimVector = Eigen::Matrix<double, GlobalDim, 1>; using GlobalDimVector = Eigen::Matrix<double, GlobalDim, 1>;
using DimVectorType = typename ShapeMatricesTypePressure::DimVectorType;
HydroMechanicsProcessData<GlobalDim>& _process_data; HydroMechanicsProcessData<GlobalDim>& _process_data;
......
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