Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-subgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
agnumpde
dune-subgrid
Commits
2a922a8b
There was a problem fetching the pipeline summary.
Commit
2a922a8b
authored
7 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Add some documentation
parent
7668a682
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/subgrid/subgrid/subgridintersection.hh
+5
-0
5 additions, 0 deletions
dune/subgrid/subgrid/subgridintersection.hh
with
5 additions
and
0 deletions
dune/subgrid/subgrid/subgridintersection.hh
+
5
−
0
View file @
2a922a8b
...
@@ -157,10 +157,13 @@ public:
...
@@ -157,10 +157,13 @@ public:
return
*
this
;
return
*
this
;
}
}
//! Return inside element
Entity
inside
()
const
{
Entity
inside
()
const
{
return
inside_
;
return
inside_
;
}
}
//! Return outside element, throws exception for boundary elements
Entity
outside
()
const
{
Entity
outside
()
const
{
if
(
!
neighbor
())
if
(
!
neighbor
())
DUNE_THROW
(
GridError
,
"There is no neighbor!"
);
DUNE_THROW
(
GridError
,
"There is no neighbor!"
);
...
@@ -186,6 +189,7 @@ public:
...
@@ -186,6 +189,7 @@ public:
:
outsideIntersect_
.
indexInInside
();
:
outsideIntersect_
.
indexInInside
();
}
}
//! Return GeometryType of the intersection
GeometryType
type
()
const
{
GeometryType
type
()
const
{
if
(
outside_
.
level
()
>
inside_
.
level
())
if
(
outside_
.
level
()
>
inside_
.
level
())
return
outsideIntersect_
.
type
();
return
outsideIntersect_
.
type
();
...
@@ -214,6 +218,7 @@ public:
...
@@ -214,6 +218,7 @@ public:
return
insideIntersect_
.
centerUnitOuterNormal
();
return
insideIntersect_
.
centerUnitOuterNormal
();
}
}
//! Return the global geometry of the intersection
Geometry
geometry
()
const
{
Geometry
geometry
()
const
{
if
(
outsideIntersect_
.
inside
().
level
()
>=
insideIntersect_
.
inside
().
level
())
if
(
outsideIntersect_
.
inside
().
level
()
>=
insideIntersect_
.
inside
().
level
())
return
Geometry
(
GeometryImpl
(
outsideIntersect_
.
geometry
()));
return
Geometry
(
GeometryImpl
(
outsideIntersect_
.
geometry
()));
...
...
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