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
029923fa
Commit
029923fa
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
implemented sibIndex method for edge numbering. Work now.
NOTE! ALUGrid update needed!. [[Imported from SVN: r3090]]
parent
43d593c9
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/alu3dgrid/entity_imp.cc
+7
-13
7 additions, 13 deletions
grid/alu3dgrid/entity_imp.cc
with
7 additions
and
13 deletions
grid/alu3dgrid/entity_imp.cc
+
7
−
13
View file @
029923fa
...
...
@@ -391,15 +391,13 @@ namespace Dune {
template
<
class
IMPLElemType
>
struct
IndexWrapper
<
IMPLElemType
,
tetra
,
2
>
{
typedef
ElementTopologyMapping
<
tetra
>
Topo
;
// return subIndex of given edge
static
inline
int
subIndex
(
const
IMPLElemType
&
elem
,
int
i
)
{
dwarn
<<
"method not tested yet. ! in:"
<<
__FILE__
<<
" line:"
<<
__LINE__
<<
"
\n
"
;
if
(
i
<
3
)
return
elem
.
myhface3
(
0
)
->
myhedge1
(
i
)
->
getIndex
();
else
// * should probably be:
// elem.myhface3(i-2)->myhedge1(0)->getIndex()
return
elem
.
myhface3
(
i
-
2
)
->
myhedge1
(
i
-
3
)
->
getIndex
();
// get hedge1 correspong to dune reference element and return number
return
elem
.
myhedge1
(
Topo
::
dune2aluEdge
(
i
)
)
->
getIndex
();
}
};
...
...
@@ -437,14 +435,12 @@ namespace Dune {
}
};
// this method os deprecated
template
<
int
dim
,
class
GridImp
>
template
<
int
cc
>
inline
int
ALU3dGridEntity
<
0
,
dim
,
GridImp
>
::
subIndex
(
int
i
)
const
{
//assert(false); // this method is to be removed soon
//assert(cc == dim);
dwarn
<<
"Test this shit in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
dwarn
<<
"This method is deprecated: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
assert
(
item_
!=
0
);
typedef
typename
ALU3dImplTraits
<
GridImp
::
elementType
>::
IMPLElementType
IMPLElType
;
return
IndexWrapper
<
IMPLElType
,
GridImp
::
elementType
,
cc
>::
subIndex
(
*
item_
,
i
);
...
...
@@ -454,8 +450,6 @@ namespace Dune {
template
<
int
cc
>
inline
int
ALU3dGridEntity
<
0
,
dim
,
GridImp
>
::
getSubIndex
(
int
i
)
const
{
//assert(cc == dim);
dwarn
<<
"Test this shit in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
assert
(
item_
!=
0
);
typedef
typename
ALU3dImplTraits
<
GridImp
::
elementType
>::
IMPLElementType
IMPLElType
;
return
IndexWrapper
<
IMPLElType
,
GridImp
::
elementType
,
cc
>::
subIndex
(
*
item_
,
i
);
...
...
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