Skip to content
Snippets Groups Projects
Commit 31c0d441 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

improve readabiliy bit

parent c67d8246
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ inline void computeMappingMatrices( ...@@ -116,7 +116,7 @@ inline void computeMappingMatrices(
const unsigned ele_dim(shapemat.dNdr.rows()); const unsigned ele_dim(shapemat.dNdr.rows());
assert(shapemat.dNdr.rows()==ele.getDimension()); assert(shapemat.dNdr.rows()==ele.getDimension());
const unsigned global_dim(ele_local_coord.getGlobalCoordinateSystem().getDimension()); const unsigned global_dim(ele_local_coord.getGlobalCoordinateSystem().getDimension());
if (ele_local_coord.getGlobalCoordinateSystem().getDimension()==ele.getDimension()) { if (global_dim==ele_dim) {
shapemat.dNdx.topLeftCorner(ele_dim, nnodes) = shapemat.invJ * shapemat.dNdr; shapemat.dNdx.topLeftCorner(ele_dim, nnodes) = shapemat.invJ * shapemat.dNdr;
} else { } else {
auto const& matR = ele_local_coord.getRotationMatrixToGlobal(); // 3 x 3 auto const& matR = ele_local_coord.getRotationMatrixToGlobal(); // 3 x 3
......
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