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
f60508ff
Commit
f60508ff
authored
19 years ago
by
Peter Bastian
Browse files
Options
Downloads
Patches
Plain Diff
- implemented ownersFather and positionInOwnersFather (at least partly ...)
[[Imported from SVN: r2999]]
parent
e704ae7c
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/uggridentity.cc
+7
-0
7 additions, 0 deletions
grid/uggrid/uggridentity.cc
grid/uggrid/uggridentity.hh
+26
-4
26 additions, 4 deletions
grid/uggrid/uggridentity.hh
with
33 additions
and
4 deletions
grid/uggrid/uggridentity.cc
+
7
−
0
View file @
f60508ff
...
...
@@ -369,3 +369,10 @@ UGGridEntity < 0, dim, GridImp>::father() const
it
.
setToTarget
(
UG_NS
<
dim
>::
EFather
(
target_
));
return
it
;
}
template
<
int
dim
,
class
GridImp
>
inline
UGGridGeometry
<
dim
,
dim
,
GridImp
>&
UGGridEntity
<
0
,
dim
,
GridImp
>::
father_relative_local
()
{
DUNE_THROW
(
GridError
,
"father_relative_local not implemented"
);
return
fatherReLocal_
;
}
This diff is collapsed.
Click to expand it.
grid/uggrid/uggridentity.hh
+
26
−
4
View file @
f60508ff
...
...
@@ -18,6 +18,8 @@ namespace Dune {
class
UGGridEntity
;
template
<
int
dim
,
int
dimworld
>
class
UGGrid
;
template
<
int
codim
,
class
GridImp
>
class
UGGridEntityPointer
;
template
<
int
codim
,
PartitionIteratorType
pitype
,
class
GridImp
>
class
UGGridLevelIterator
;
template
<
class
GridImp
>
...
...
@@ -136,8 +138,17 @@ namespace Dune {
//! geometry of this entity
const
Geometry
&
geometry
()
const
;
UGGridLevelIterator
<
0
,
All_Partition
,
GridImp
>
ownersFather
()
const
{
DUNE_THROW
(
NotImplemented
,
"ownersFather"
);
UGGridEntityPointer
<
0
,
GridImp
>
ownersFather
()
const
{
UGGridEntityPointer
<
0
,
GridImp
>
myfather
;
if
(
UG_NS
<
dim
>::
NFather
(
target_
)
!=
0
)
if
(
UG_NS
<
dim
>::
myLevel
(
UG_NS
<
dim
>::
NFather
(
target_
))
==
this
->
level
()
-
1
)
{
myfather
.
setToTarget
(
UG_NS
<
dim
>::
NFather
(
target_
),
this
->
level
()
-
1
);
return
myfather
;
}
DUNE_THROW
(
NotImplemented
,
"ownersFather for anything else than new vertices"
);
return
myfather
;
}
/** \brief Location of this vertex within a mesh entity of codimension 0 on the coarse grid.
...
...
@@ -145,8 +156,16 @@ namespace Dune {
This can speed up on-the-fly interpolation for linear conforming elements
Possibly this is sufficient for all applications we want on-the-fly.
*/
FieldVector
<
UGCtype
,
dim
>&
positionInOwnersFather
()
const
{
DUNE_THROW
(
NotImplemented
,
"positionInOwnersFather"
);
FieldVector
<
UGCtype
,
dim
>&
positionInOwnersFather
()
const
{
if
(
UG_NS
<
dim
>::
NFather
(
target_
)
!=
0
)
if
(
UG_NS
<
dim
>::
myLevel
(
UG_NS
<
dim
>::
NFather
(
target_
))
==
this
->
level
()
-
1
)
{
UG_NS
<
dim
>::
PositionInFather
(
target_
,
pos_
);
return
pos_
;
}
DUNE_THROW
(
NotImplemented
,
"positionInOwnersFather for anything else than new vertices"
);
return
pos_
;
}
...
...
@@ -167,6 +186,9 @@ namespace Dune {
int
level_
;
typename
TargetType
<
codim
,
dim
>::
T
*
target_
;
mutable
FieldVector
<
UGCtype
,
dim
>
pos_
;
};
//***********************
...
...
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