Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-alugrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-alugrid
Commits
06f216d7
Commit
06f216d7
authored
5 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix][meshquality] Only works for simplex grids, skipping when used
with cubes.
parent
58e3e00e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/alugrid/common/meshquality.hh
+7
-1
7 additions, 1 deletion
dune/alugrid/common/meshquality.hh
with
7 additions
and
1 deletion
dune/alugrid/common/meshquality.hh
+
7
−
1
View file @
06f216d7
...
...
@@ -69,6 +69,12 @@ namespace Dune {
const
double
vol
=
element
.
geometry
().
volume
();
const
Dune
::
GeometryType
geomType
=
element
.
type
();
if
(
!
geomType
.
isSimplex
()
)
{
std
::
cout
<<
"MeshQuality check only works for simplex grids, skipping check!"
<<
std
::
endl
;
return
;
}
const
double
factorEdge
=
geomType
.
isCube
()
?
1.0
:
factorEdgeTet
;
const
double
factorFaceEdge
=
geomType
.
isCube
()
?
1.0
:
factorFaceEdgeTet
;
const
double
factorFace
=
geomType
.
isCube
()
?
1.0
:
factorFaceTet
;
...
...
@@ -101,7 +107,7 @@ namespace Dune {
{
const
auto
&
face
=
element
.
template
subEntity
<
dim
-
2
>(
f
);
const
auto
&
geo
=
face
.
geometry
();
assert
(
geo
.
corners
()
==
3
);
//
assert( geo.corners() == 3 );
//( geo.corner( 1 ) - geo.corner( 0 ) ).two_norm();
double
faceSize
=
geo
.
volume
();
faceVols
.
push_back
(
faceSize
);
...
...
This diff is collapsed.
Click to expand it.
Tobias Leibner
@l_tobi01
mentioned in commit
c499b464
·
3 years ago
mentioned in commit
c499b464
mentioned in commit c499b464390d8507e489418633a4acdcd1900537
Toggle commit list
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