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
805a14fc
Commit
805a14fc
authored
19 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Added missing */. How could I compile the UGGrid-test with this bug???
[[Imported from SVN: r3978]]
parent
aac5323c
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/uggrid/uggridrenumberer.hh
+67
-67
67 additions, 67 deletions
grid/uggrid/uggridrenumberer.hh
with
67 additions
and
67 deletions
grid/uggrid/uggridrenumberer.hh
+
67
−
67
View file @
805a14fc
...
...
@@ -23,91 +23,91 @@ namespace Dune {
public:
/** \brief Turn a local vertex number from DUNE numbering to UG numbering *
static int verticesDUNEtoUG(int i, NewGeometryType type) {
if (type.isCube()) {
const int renumbering[4] = {0, 1, 3, 2};
return renumbering[i];
}
return i;
}
/** \brief Turn a local face number from DUNE numbering to UG numbering *
static int facesDUNEtoUG(int i, NewGeometryType type) {
if (type.isCube()) {
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const int renumbering[6] = {4, 2, 1, 3, 0, 5};
return renumbering[i];
}
if (type.isSimplex()) {
/** \todo Check this */
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
4
]
=
{
1
,
2
,
0
,
3
};
return
renumbering
[
i
];
}
return
i
;
}
/** \brief Turn a local vertex number from DUNE numbering to UG numbering */
static
int
verticesDUNEtoUG
(
int
i
,
NewGeometryType
type
)
{
};
if
(
type
.
isCube
())
{
const
int
renumbering
[
4
]
=
{
0
,
1
,
3
,
2
};
return
renumbering
[
i
];
}
/** \brief DUNE and UG use different local numberings for the subentities of elements.
This class does the conversions for 3d-grids.
*/
template
<
>
class
UGGridRenumberer
<
3
>
{
return
i
;
}
/** \brief Turn a local face number from DUNE numbering to UG numbering */
static
int
facesDUNEtoUG
(
int
i
,
NewGeometryType
type
)
{
public:
if
(
type
.
isCube
())
{
/** \brief Turn a local vertex number from DUNE numbering to UG numbering *
static int verticesDUNEtoUG(int i, NewGeometryType type) {
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
6
]
=
{
4
,
2
,
1
,
3
,
0
,
5
};
return
renumbering
[
i
];
}
if
(
type
.
isSimplex
())
{
/** \todo Check this */
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
4
]
=
{
1
,
2
,
0
,
3
};
return
renumbering
[
i
];
}
return
i
;
}
};
/** \brief DUNE and UG use different local numberings for the subentities of elements.
This class does the conversions for 3d-grids.
*/
template
<
>
class
UGGridRenumberer
<
3
>
{
public:
/** \brief Turn a local vertex number from DUNE numbering to UG numbering */
static
int
verticesDUNEtoUG
(
int
i
,
NewGeometryType
type
)
{
if
(
type
.
isCube
())
{
const int renumbering[8] = {0, 1, 3, 2, 4, 5, 7, 6};
return renumbering[i];
const
int
renumbering
[
8
]
=
{
0
,
1
,
3
,
2
,
4
,
5
,
7
,
6
};
return
renumbering
[
i
];
}
return
i
;
}
}
/** \brief Turn a local face number from DUNE numbering to UG numbering *
static int facesDUNEtoUG(int i, NewGeometryType type) {
/** \brief Turn a local face number from DUNE numbering to UG numbering *
/
static
int
facesDUNEtoUG
(
int
i
,
NewGeometryType
type
)
{
if
(
type
.
isCube
())
{
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const int renumbering[6] = {4, 2, 1, 3, 0, 5};
return renumbering[i];
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
6
]
=
{
4
,
2
,
1
,
3
,
0
,
5
};
return
renumbering
[
i
];
}
if
(
type
.
isSimplex
())
{
/** \todo Check this */
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
4
]
=
{
1
,
2
,
0
,
3
};
return
renumbering
[
i
];
}
return
i
;
}
/** \todo Check this */
// Dune numbers the vertices of a hexahedron and quadrilaterals differently than UG.
// The following two lines do the transformation
// The renumbering scheme is {0,1,3,2} for quadrilaterals, therefore, the
// following code works for 2d and 3d.
const
int
renumbering
[
4
]
=
{
1
,
2
,
0
,
3
};
return
renumbering
[
i
];
}
return
i
;
}
};
};
}
#endif
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