Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Timo Koch
dune-common
Commits
9dcf514f
Commit
9dcf514f
authored
19 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
first somewhat slow implementation of outside/inside
[[Imported from SVN: r2365]]
parent
e8dc539d
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
grid/yaspgrid.hh
+19
-0
19 additions, 0 deletions
grid/yaspgrid.hh
with
19 additions
and
0 deletions
grid/yaspgrid.hh
+
19
−
0
View file @
9dcf514f
...
...
@@ -1174,6 +1174,7 @@ namespace Dune {
typedef
typename
MultiYGrid
<
dim
,
ctype
>::
YGridLevelIterator
YGLI
;
typedef
typename
SubYGrid
<
dim
,
ctype
>::
TransformingSubIterator
TSI
;
typedef
typename
GridImp
::
template
Codim
<
0
>
::
Entity
Entity
;
typedef
typename
GridImp
::
template
Codim
<
0
>
::
EntityPointer
EntityPointer
;
typedef
typename
GridImp
::
template
Codim
<
0
>
::
BoundaryEntity
BoundaryEntity
;
typedef
typename
GridImp
::
template
Codim
<
1
>
::
Geometry
Geometry
;
typedef
typename
GridImp
::
template
Codim
<
1
>
::
LocalGeometry
LocalGeometry
;
...
...
@@ -1275,6 +1276,20 @@ namespace Dune {
#endif
}
//! return EntityPointer to the Entity on the inside of this intersection
//! (that is the Entity where we started this Iterator)
EntityPointer
inside
()
const
{
return
_selfp
;
}
//! return EntityPointer to the Entity on the outside of this intersection
//! (that is the neighboring Entity)
EntityPointer
outside
()
const
{
return
*
this
;
}
//! return unit outer normal, this should be dependent on local coordinates for higher order boundary
FieldVector
<
ctype
,
dimworld
>
outerNormal
(
const
FieldVector
<
ctype
,
dim
-
1
>&
local
)
const
{
...
...
@@ -1329,6 +1344,8 @@ namespace Dune {
YaspIntersectionIterator
(
const
YaspEntity
<
0
,
dim
,
GridImp
>&
myself
,
bool
toend
)
:
YaspEntityPointer
<
0
,
GridImp
>
(
myself
.
gridlevel
(),
myself
.
transformingsubiterator
()),
_selfp
(
myself
.
gridlevel
(),
myself
.
transformingsubiterator
()),
_myself
(
myself
),
_pos_self_local
(
0.5
),
_pos_nb_local
(
0.5
),
...
...
@@ -1369,6 +1386,7 @@ namespace Dune {
_count
(
it
.
_count
),
_dir
(
it
.
_dir
),
_face
(
it
.
_face
),
_selfp
(
it
.
_selfp
),
_myself
(
it
.
_myself
),
_pos_self_local
(
it
.
_pos_self_local
),
_pos_nb_local
(
it
.
_pos_nb_local
),
...
...
@@ -1385,6 +1403,7 @@ namespace Dune {
int
_count
;
//!< valid neighbor count in 0 .. 2*dim-1
int
_dir
;
//!< count/2
int
_face
;
//!< count%2
const
YaspEntityPointer
<
0
,
GridImp
>
_selfp
;
//!< entitypointer to myself
const
YaspEntity
<
0
,
dim
,
GridImp
>&
_myself
;
//!< reference to myself
FieldVector
<
ctype
,
dim
>
_pos_self_local
;
//!< center of face in own local coordinates
...
...
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