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

Made MElement::scaledJacRange const

parent a149731e
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ double MElement::metricShapeMeasure2() ...@@ -123,7 +123,7 @@ double MElement::metricShapeMeasure2()
return MetricBasis::boundMinR(this); return MetricBasis::boundMinR(this);
} }
double MElement::maxDistToStraight() double MElement::maxDistToStraight() const
{ {
const nodalBasis *lagBasis = getFunctionSpace(); const nodalBasis *lagBasis = getFunctionSpace();
const fullMatrix<double> &uvw = lagBasis->points; const fullMatrix<double> &uvw = lagBasis->points;
...@@ -146,7 +146,7 @@ double MElement::maxDistToStraight() ...@@ -146,7 +146,7 @@ double MElement::maxDistToStraight()
return maxdx; return maxdx;
} }
void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge) void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge) const
{ {
jmin = jmax = 1.0; jmin = jmax = 1.0;
#if defined(HAVE_MESH) #if defined(HAVE_MESH)
...@@ -161,7 +161,7 @@ void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge) ...@@ -161,7 +161,7 @@ void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge)
SVector3 geoNorm(0.,0.,0.); SVector3 geoNorm(0.,0.,0.);
// ... correct Jacobian sign with geometrical normal // ... correct Jacobian sign with geometrical normal
for (int i=0; i<jac->getNumPrimMapNodes(); i++) { for (int i=0; i<jac->getNumPrimMapNodes(); i++) {
MVertex *vert = getVertex(i); const MVertex *vert = getVertex(i);
if (vert->onWhat() == ge) { if (vert->onWhat() == ge) {
double u, v; double u, v;
vert->getParameter(0,u); vert->getParameter(0,u);
......
...@@ -176,7 +176,7 @@ class MElement ...@@ -176,7 +176,7 @@ class MElement
virtual double minEdge(); virtual double minEdge();
// Max. distance between curved and straight element among all high-order nodes // Max. distance between curved and straight element among all high-order nodes
double maxDistToStraight(); double maxDistToStraight() const;
// get the quality measures // get the quality measures
double skewness(); double skewness();
...@@ -190,7 +190,7 @@ class MElement ...@@ -190,7 +190,7 @@ class MElement
return jmin; return jmin;
} }
virtual double angleShapeMeasure() { return 1.0; } virtual double angleShapeMeasure() { return 1.0; }
virtual void scaledJacRange(double &jmin, double &jmax, GEntity *ge = 0); virtual void scaledJacRange(double &jmin, double &jmax, GEntity *ge = 0) const;
virtual double metricShapeMeasure(); virtual double metricShapeMeasure();
virtual double metricShapeMeasure2(); virtual double metricShapeMeasure2();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment