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

No commit message

No commit message
parent 464074fc
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,8 @@ double minScaledJacobian(MElement *el, bool knownValid, bool reversedOk) ...@@ -157,7 +157,8 @@ double minScaledJacobian(MElement *el, bool knownValid, bool reversedOk)
// Msg::Info("element %d, type %d, numSub %d", el->getNum(), el->getType(), // Msg::Info("element %d, type %d, numSub %d", el->getNum(), el->getType(),
// domains.size()/7); // domains.size()/7);
if (domains.size()/7 > 500) {//fordebug if (domains.size()/7 > 500) {//fordebug
Msg::Info("S too much subdivision: %d (el %d, type %d)", domains.size()/7, el->getNum(), el->getType()); Msg::Info("S too much subdivision: %d (el %d, type %d, tag %d)",
domains.size()/7, el->getNum(), el->getType(), el->getTypeForMSH());
} }
double min = domains[0]->minB(); double min = domains[0]->minB();
...@@ -323,7 +324,7 @@ double minIsotropyMeasure(MElement *el, ...@@ -323,7 +324,7 @@ double minIsotropyMeasure(MElement *el,
jacDetSpace = FuncSpaceData(el, false, jacOrder, jacOrder-3, &serendipFalse); jacDetSpace = FuncSpaceData(el, false, jacOrder, jacOrder-3, &serendipFalse);
break; break;
default: default:
Msg::Error("Scaled Jacobian not implemented for type of element %d", el->getType()); Msg::Error("Isotropy not implemented for type of element %d", el->getType());
return -1; return -1;
} }
gradBasis = BasisFactory::getGradientBasis(jacMatSpace); gradBasis = BasisFactory::getGradientBasis(jacMatSpace);
...@@ -358,7 +359,8 @@ double minIsotropyMeasure(MElement *el, ...@@ -358,7 +359,8 @@ double minIsotropyMeasure(MElement *el,
_subdivideDomains(domains); _subdivideDomains(domains);
if (domains.size()/7 > 500) {//fordebug if (domains.size()/7 > 500) {//fordebug
Msg::Info("I too much subdivision: %d (el %d, type %d)", domains.size()/7, el->getNum(), el->getType()); Msg::Info("I too much subdivision: %d (el %d, type %d, tag %d)",
domains.size()/7, el->getNum(), el->getType(), el->getTypeForMSH());
} }
...@@ -852,8 +854,9 @@ double _CoeffDataIsotropy::_computeLowerBound() const ...@@ -852,8 +854,9 @@ double _CoeffDataIsotropy::_computeLowerBound() const
// 3D element NEW // 3D element NEW
fullVector<double> coeffDenominator; fullVector<double> coeffDenominator;
{ {
fullVector<double> P(_coeffsJacMat.size1()); // P: coefficients of function that bound from above the Frobenius norm of J
// element of P are automatically set to 0 // element of P are automatically set to 0
fullVector<double> P(_coeffsJacMat.size1());
for (int i = 0; i < _coeffsJacMat.size1(); ++i) { for (int i = 0; i < _coeffsJacMat.size1(); ++i) {
for (int k = 0; k < _coeffsJacMat.size2(); ++k) { for (int k = 0; k < _coeffsJacMat.size2(); ++k) {
P(i) += _coeffsJacMat(i, k) * _coeffsJacMat(i, k); P(i) += _coeffsJacMat(i, k) * _coeffsJacMat(i, k);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment