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
14d92b1a
Commit
14d92b1a
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
removed deprecated use of globalIndex and changed to new geometry tpyes.
[[Imported from SVN: r3008]]
parent
cb34df9d
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/alu3dgrid/entity_imp.cc
+1
-1
1 addition, 1 deletion
grid/alu3dgrid/entity_imp.cc
grid/alu3dgrid/geometry_imp.cc
+50
-45
50 additions, 45 deletions
grid/alu3dgrid/geometry_imp.cc
with
51 additions
and
46 deletions
grid/alu3dgrid/entity_imp.cc
+
1
−
1
View file @
14d92b1a
...
...
@@ -642,7 +642,7 @@ namespace Dune {
{
if
(
!
item_
->
up
()
)
{
std
::
cerr
<<
"ALU3dGridEntity<0,"
<<
dim
<<
","
<<
dimworld
<<
"> :: father() : no father of entity globalid = "
<<
g
lobal
Index
()
<<
"
\n
"
;
std
::
cerr
<<
"ALU3dGridEntity<0,"
<<
dim
<<
","
<<
dimworld
<<
"> :: father() : no father of entity globalid = "
<<
g
et
Index
()
<<
"
\n
"
;
return
ALU3dGridEntityPointer
<
0
,
GridImp
>
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
item_
));
}
return
ALU3dGridEntityPointer
<
0
,
GridImp
>
(
grid_
,
static_cast
<
ALU3DSPACE
HElementType
&>
(
*
(
item_
->
up
())));
...
...
This diff is collapsed.
Click to expand it.
grid/alu3dgrid/geometry_imp.cc
+
50
−
45
View file @
14d92b1a
...
...
@@ -241,43 +241,45 @@ namespace Dune {
return
true
;
}
/*
template <GeometryType eltype , int dim> struct ALU3dGridElType {
static inline GeometryType type () { return unknown; }
};
template <> struct ALU3dGridElType<tetrahedron,3> {
static inline GeometryType type () { return tetrahedron; }
};
template <> struct ALU3dGridElType<tetrahedron,2> {
static inline GeometryType type () { return triangle; }
};
template <GeometryType eltype> struct ALU3dGridElType<eltype,1> {
static inline GeometryType type () { return line; }
};
template <GeometryType eltype> struct ALU3dGridElType<eltype,0> {
static inline GeometryType type () { return vertex; }
};
template <> struct ALU3dGridElType<hexahedron,3> {
static inline GeometryType type () { return hexahedron; }
};
template <> struct ALU3dGridElType<hexahedron,2> {
static inline GeometryType type () { return quadrilateral; }
};
*/
template
<
GeometryType
eltype
,
int
dim
>
struct
ALU3dGridElType
{
static
inline
GeometryType
type
()
{
return
unknown
;
}
};
template
<
>
struct
ALU3dGridElType
<
tetrahedron
,
3
>
{
static
inline
GeometryType
type
()
{
return
tetrahedron
;
}
};
template
<
>
struct
ALU3dGridElType
<
tetrahedron
,
2
>
{
static
inline
GeometryType
type
()
{
return
triangle
;
}
};
template
<
GeometryType
eltype
>
struct
ALU3dGridElType
<
eltype
,
1
>
{
static
inline
GeometryType
type
()
{
return
line
;
}
};
template
<
GeometryType
eltype
>
struct
ALU3dGridElType
<
eltype
,
0
>
{
static
inline
GeometryType
type
()
{
return
vertex
;
}
};
template
<
>
struct
ALU3dGridElType
<
hexahedron
,
3
>
{
static
inline
GeometryType
type
()
{
return
hexahedron
;
}
};
template
<
>
struct
ALU3dGridElType
<
hexahedron
,
2
>
{
static
inline
GeometryType
type
()
{
return
quadrilateral
;
}
};
/* Comment in for adaptation to new GeometryType
template <int mydim, int cdim>
inline GeometryType
ALU3dGridGeometry<mydim,cdim,const ALU3dGrid<3, 3, tetra> > ::type () const {
return simplex;
}
template <int mydim, int cdim>
inline GeometryType
ALU3dGridGeometry<mydim,cdim,const ALU3dGrid<3, 3, hexa> > ::type () const {
return cube;
}
/* Comment in for adaptation to new GeometryType */
template
<
int
mydim
,
int
cdim
>
inline
GeometryType
ALU3dGridGeometry
<
mydim
,
cdim
,
const
ALU3dGrid
<
3
,
3
,
tetra
>
>
::
type
()
const
{
return
simplex
;
}
template
<
int
mydim
,
int
cdim
>
inline
GeometryType
ALU3dGridGeometry
<
mydim
,
cdim
,
const
ALU3dGrid
<
3
,
3
,
hexa
>
>
::
type
()
const
{
return
cube
;
}
/*
template <>
inline GeometryType
ALU3dGridGeometry<0, 3, const ALU3dGrid<3, 3, tetra> > ::type () const {
...
...
@@ -291,11 +293,13 @@ namespace Dune {
}
*/
template
<
int
mydim
,
int
cdim
>
inline
GeometryType
ALU3dGridGeometry
<
mydim
,
cdim
,
const
ALU3dGrid
<
3
,
3
,
tetra
>
>
::
type
()
const
{
return
ALU3dGridElType
<
tetrahedron
,
mydim
>::
type
();
}
/*
template<int mydim, int cdim>
inline GeometryType ALU3dGridGeometry<mydim,cdim,const ALU3dGrid<3, 3, tetra> > ::type () const
{
return ALU3dGridElType<tetrahedron,mydim>::type();
}
*/
template
<
int
mydim
,
int
cdim
>
...
...
@@ -459,12 +463,13 @@ namespace Dune {
delete
biMap_
;
}
template
<
int
mydim
,
int
cdim
>
inline
GeometryType
ALU3dGridGeometry
<
mydim
,
cdim
,
const
ALU3dGrid
<
3
,
3
,
hexa
>
>::
type
()
const
{
return
ALU3dGridElType
<
hexahedron
,
mydim
>::
type
();
}
/*
template<int mydim, int cdim>
inline GeometryType
ALU3dGridGeometry<mydim, cdim, const ALU3dGrid<3, 3, hexa> >::type() const {
return ALU3dGridElType<hexahedron, mydim>::type();
}
*/
template
<
int
mydim
,
int
cdim
>
...
...
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