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
eb426aca
Commit
eb426aca
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
more methods implemented
[[Imported from SVN: r1058]]
parent
7d67c856
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grid/uggrid/ugintersectionit.cc
+36
-6
36 additions, 6 deletions
grid/uggrid/ugintersectionit.cc
grid/uggrid/ugintersectionit.hh
+2
-2
2 additions, 2 deletions
grid/uggrid/ugintersectionit.hh
with
38 additions
and
8 deletions
grid/uggrid/ugintersectionit.cc
+
36
−
6
View file @
eb426aca
...
...
@@ -111,6 +111,15 @@ namespace Dune {
}
#endif
/** \todo Test this for locally refined grids! */
template
<
int
dim
,
int
dimworld
>
inline
bool
UGGridIntersectionIterator
<
dim
,
dimworld
>::
neighbor
()
{
//std::cout << "neighbor not implemented yet!" << std::endl;
return
!
boundary
();
}
template
<
>
inline
FieldVector
<
UGCtype
,
3
>&
UGGridIntersectionIterator
<
3
,
3
>::
unit_outer_normal
()
...
...
@@ -191,7 +200,7 @@ namespace Dune {
intersection_self_local
()
{
std
::
cout
<<
"
\n
intersection_self_local not implemented yet!
\n
"
;
return
(
*
fakeNeigh_
)
;
return
fakeNeigh_
;
}
template
<
int
dim
,
int
dimworld
>
...
...
@@ -199,8 +208,28 @@ namespace Dune {
UGGridIntersectionIterator
<
dim
,
dimworld
>::
intersection_self_global
()
{
std
::
cout
<<
"
\n
intersection_self_global not implemented yet!
\n
"
;
return
(
*
neighGlob_
);
//#define CORNERS_OF_SIDE(p, i) (UG2d::element_descriptors[UG_NS<dimworld>::Tag(p)]->corners_of_side[(i)])
int
numCornersOfSide
=
UG_NS
<
dimworld
>::
Corners_Of_Side
(
center_
,
neighborCount_
);
//#undef CORNERS_OF_SIDE
//#define CORNER_OF_SIDE(p, s, c) (UG2d::element_descriptors[UG_NS<dimworld>::Tag(p)]->corner_of_side[(s)][(c)])
//std::cout << "Element side has " << numCornersOfSide << " corners" << std::endl;
for
(
int
i
=
0
;
i
<
numCornersOfSide
;
i
++
)
{
int
cornerIdx
=
UG_NS
<
dimworld
>::
Corner_Of_Side
(
center_
,
neighborCount_
,
i
);
typename
TargetType
<
dim
,
dim
>::
T
*
node
=
UG_NS
<
dimworld
>::
Corner
(
center_
,
cornerIdx
);
for
(
int
j
=
0
;
j
<
dimworld
;
j
++
)
neighGlob_
.
coord_
[
i
][
j
]
=
node
->
myvertex
->
iv
.
x
[
j
];
}
//#undef CORNER_OF_SIDE
return
neighGlob_
;
}
template
<
int
dim
,
int
dimworld
>
...
...
@@ -209,7 +238,7 @@ namespace Dune {
intersection_neighbor_local
()
{
std
::
cout
<<
"
\n
intersection_neighbor_local not implemented yet!
\n
"
;
return
(
*
fakeNeigh_
)
;
return
fakeNeigh_
;
}
template
<
int
dim
,
int
dimworld
>
...
...
@@ -217,8 +246,9 @@ namespace Dune {
UGGridIntersectionIterator
<
dim
,
dimworld
>::
intersection_neighbor_global
()
{
std
::
cout
<<
"
\n
intersection_neighbor_global not implemented yet!
\n
"
;
return
(
*
neighGlob_
);
// According to Peter this method is supposed to do precisely the
// same as intersection_self_global()
return
intersection_self_global
();
}
template
<
int
dim
,
int
dimworld
>
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/ugintersectionit.hh
+
2
−
2
View file @
eb426aca
...
...
@@ -118,11 +118,11 @@ namespace Dune {
//! pointer to element holding the self_local and self_global information.
//! This element is created on demand.
UGGridElement
<
dim
-
1
,
dim
>
*
fakeNeigh_
;
UGGridElement
<
dim
-
1
,
dim
>
fakeNeigh_
;
//! pointer to element holding the neighbor_global and neighbor_local
//! information. This element is created on demand.
UGGridElement
<
dim
-
1
,
dimworld
>
*
neighGlob_
;
UGGridElement
<
dim
-
1
,
dimworld
>
neighGlob_
;
//! BoundaryEntity
UGGridBoundaryEntity
<
dim
,
dimworld
>
boundaryEntity_
;
...
...
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