Skip to content
Snippets Groups Projects
Commit 469e52f6 authored by Thomas Toulorge's avatar Thomas Toulorge
Browse files

Fixed OptHOM for HO elements with negative primary Jacobian

parent f51437ec
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ Mesh::Mesh(const std::map<MElement*,GEntity*> &element2entity, ...@@ -108,7 +108,7 @@ Mesh::Mesh(const std::map<MElement*,GEntity*> &element2entity,
_invStraightJac.resize(nEl(),1.); _invStraightJac.resize(nEl(),1.);
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. / _el[iEl]->getPrimaryJacobian(0.,0.,0.,dumJac); _invStraightJac[iEl] = 1. / fabs(_el[iEl]->getPrimaryJacobian(0.,0.,0.,dumJac));
} }
} }
......
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