Skip to content
Snippets Groups Projects
Commit 6550018d authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[NL] added integral measure to shapematrices

parent 58f8f25c
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ inline void setZero(ShapeMatrices<T_N, T_DNDR, T_J, T_DNDX> &shape, ShapeDataFie
setZero(shape, ShapeDataFieldType<ShapeMatrixType::DNDR>());
setMatrixZero(shape.J);
shape.detJ = .0;
shape.integralMeasure = 0.0;
}
template <class T_N, class T_DNDR, class T_J, class T_DNDX>
......
......@@ -54,6 +54,7 @@ struct ShapeMatrices
double detJ; ///< Determinant of the Jacobian
JacobianType invJ; ///< Inverse matrix of the Jacobian
DxShapeType dNdx; ///< Matrix of gradient of shape functions in physical coordinates, dN(r)/dx
double integralMeasure;
/** Not default constructible, dimensions always must be given.
*
......@@ -80,7 +81,8 @@ struct ShapeMatrices
J(local_dim, local_dim),
detJ(.0),
invJ(local_dim, local_dim),
dNdx(global_dim, n_nodes)
dNdx(global_dim, n_nodes),
integralMeasure(0.0)
{
setZero();
}
......
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