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
Nils-Arne Dreier
dune-common
Commits
7b506062
Commit
7b506062
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
father() implemented
[[Imported from SVN: r1092]]
parent
ef936e75
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/ugfunctions.hh
+12
-0
12 additions, 0 deletions
grid/uggrid/ugfunctions.hh
grid/uggrid/uggridentity.cc
+11
-18
11 additions, 18 deletions
grid/uggrid/uggridentity.cc
with
23 additions
and
18 deletions
grid/uggrid/ugfunctions.hh
+
12
−
0
View file @
7b506062
...
...
@@ -131,6 +131,18 @@ namespace Dune {
return
CORNER
(
theElement
,
i
);
}
static
typename
TargetType
<
0
,
dim
>::
T
*
EFather
(
typename
TargetType
<
0
,
dim
>::
T
*
theElement
)
{
#ifdef _3
using
UG3d
::
ELEMENT
;
using
UG3d
::
father_offset
;
#else
using
UG2d
::
ELEMENT
;
using
UG2d
::
father_offset
;
#endif
return
EFATHER
(
theElement
);
}
static
void
InitUg
(
int
*
argcp
,
char
***
argvp
)
{
#ifdef _3
UG3d
::
InitUg
(
argcp
,
argvp
);
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/uggridentity.cc
+
11
−
18
View file @
7b506062
...
...
@@ -95,24 +95,7 @@ geometry()
return
geo_
;
}
#if 0 // commented out because it doesn't compile
#ifdef _3
template<>
inline UGGridLevelIterator<0,3,3, All_Partition>
UGGridEntity < 0, 3 ,3>::father()
{
UGGridLevelIterator<0,3,3, All_Partition> it(level()-1);
#define TAG(p) ReadCW(p, UG3d::TAG_CE)
#define EFATHER(p) ((UG3d::ELEMENT *) (p)->ge.refs[UG3d::father_offset[TAG(p)]])
UG3d::ELEMENT* fatherTarget = EFATHER(target_);
#undef TAG
#undef EFATHER
it.setToTarget(fatherTarget);
return it;
}
#endif
#endif
//************************************
//
...
...
@@ -388,3 +371,13 @@ geometry()
{
return
geo_
;
}
template
<
int
dim
,
int
dimworld
>
inline
UGGridLevelIterator
<
0
,
dim
,
dimworld
,
All_Partition
>
UGGridEntity
<
0
,
dim
,
dimworld
>::
father
()
{
UGGridLevelIterator
<
0
,
dim
,
dimworld
,
All_Partition
>
it
(
level
()
-
1
);
it
.
setToTarget
(
UG_NS
<
dimworld
>::
EFather
(
target_
));
return
it
;
}
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