Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
c82e60d3
Commit
c82e60d3
authored
10 years ago
by
Thomas Toulorge
Browse files
Options
Downloads
Patches
Plain Diff
Made MElement::scaledJacRange const
parent
a149731e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/MElement.cpp
+3
-3
3 additions, 3 deletions
Geo/MElement.cpp
Geo/MElement.h
+2
-2
2 additions, 2 deletions
Geo/MElement.h
with
5 additions
and
5 deletions
Geo/MElement.cpp
+
3
−
3
View file @
c82e60d3
...
...
@@ -123,7 +123,7 @@ double MElement::metricShapeMeasure2()
return
MetricBasis
::
boundMinR
(
this
);
}
double
MElement
::
maxDistToStraight
()
double
MElement
::
maxDistToStraight
()
const
{
const
nodalBasis
*
lagBasis
=
getFunctionSpace
();
const
fullMatrix
<
double
>
&
uvw
=
lagBasis
->
points
;
...
...
@@ -146,7 +146,7 @@ double MElement::maxDistToStraight()
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
;
#if defined(HAVE_MESH)
...
...
@@ -161,7 +161,7 @@ void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge)
SVector3
geoNorm
(
0.
,
0.
,
0.
);
// ... correct Jacobian sign with geometrical normal
for
(
int
i
=
0
;
i
<
jac
->
getNumPrimMapNodes
();
i
++
)
{
MVertex
*
vert
=
getVertex
(
i
);
const
MVertex
*
vert
=
getVertex
(
i
);
if
(
vert
->
onWhat
()
==
ge
)
{
double
u
,
v
;
vert
->
getParameter
(
0
,
u
);
...
...
This diff is collapsed.
Click to expand it.
Geo/MElement.h
+
2
−
2
View file @
c82e60d3
...
...
@@ -176,7 +176,7 @@ class MElement
virtual
double
minEdge
();
// Max. distance between curved and straight element among all high-order nodes
double
maxDistToStraight
();
double
maxDistToStraight
()
const
;
// get the quality measures
double
skewness
();
...
...
@@ -190,7 +190,7 @@ class MElement
return
jmin
;
}
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
metricShapeMeasure2
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment