Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-foamgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansgar Burchardt
dune-foamgrid
Commits
fb8391d0
Commit
fb8391d0
authored
9 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[intersections] Outside and inside method return Entity now
parent
0fef5714
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/foamgrid/foamgrid/foamgridintersections.hh
+6
-8
6 additions, 8 deletions
dune/foamgrid/foamgrid/foamgridintersections.hh
with
6 additions
and
8 deletions
dune/foamgrid/foamgrid/foamgridintersections.hh
+
6
−
8
View file @
fb8391d0
...
...
@@ -12,7 +12,6 @@
#include
<dune/foamgrid/foamgrid/foamgridintersectioniterators.hh>
#include
<dune/foamgrid/foamgrid/foamgridvertex.hh>
#include
<dune/foamgrid/foamgrid/foamgridgeometry.hh>
#include
<dune/foamgrid/foamgrid/foamgridentitypointer.hh>
namespace
Dune
{
...
...
@@ -41,7 +40,6 @@ class FoamGridIntersection
public
:
typedef
typename
GridImp
::
template
Codim
<
0
>
::
EntityPointer
EntityPointer
;
typedef
typename
GridImp
::
template
Codim
<
0
>
::
Entity
Entity
;
/**
...
...
@@ -56,18 +54,18 @@ public:
:
center_
(
center
),
facetIndex_
(
facet
)
{}
//! return
EntityPointer to the
Entity on the inside of this intersection
//! return Entity on the inside of this intersection
//! (that is the Entity where we started this Iterator)
Entity
Pointer
inside
()
const
{
return
FoamGridEntity
Pointer
<
0
,
GridImp
>
(
center_
);
Entity
inside
()
const
{
return
Entity
(
FoamGridEntity
Imp
<
dimgrid
,
dimgrid
,
dimworld
>
(
center_
)
)
;
}
//! return
EntityPointer to the
Entity on the outside of this intersection
//! return Entity on the outside of this intersection
//! (that is the neighboring Entity)
Entity
Pointer
outside
(
/*std::size_t neighborIndex = 0*/
)
const
{
Entity
outside
(
/*std::size_t neighborIndex = 0*/
)
const
{
// Return the 'other' element on the current facet
return
FoamGridEntity
Pointer
<
0
,
GridImp
>
((
*
neighbor_
));
return
Entity
(
FoamGridEntity
Imp
<
dimgrid
,
dimgrid
,
dimworld
>
((
*
neighbor_
))
)
;
}
//! equality
...
...
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