Skip to content
Snippets Groups Projects
Commit d0391c45 authored by Amaury Johnen's avatar Amaury Johnen
Browse files

fix bug when optimizing 3D meshes (thanks to Wendy Merks-Swolfs!)

parent 0f679058
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,10 @@ Mesh::Mesh(const std::map<MElement*,GEntity*> &element2entity, ...@@ -112,6 +112,10 @@ Mesh::Mesh(const std::map<MElement*,GEntity*> &element2entity,
double dumJac[3][3]; double dumJac[3][3];
for (int iEl = 0; iEl < nEl(); iEl++) for (int iEl = 0; iEl < nEl(); iEl++)
_invStraightJac[iEl] = 1. / fabs(_el[iEl]->getPrimaryJacobian(0.,0.,0.,dumJac)); _invStraightJac[iEl] = 1. / fabs(_el[iEl]->getPrimaryJacobian(0.,0.,0.,dumJac));
// initialize _scaledNormEl with empty fullMatrix for use in function
// Mesh::scaledJacAndGradients(..)
_scaledNormEl.resize(nEl());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment