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
09f16cc0
Commit
09f16cc0
authored
19 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
removed obsolete GeometryTypes
[[Imported from SVN: r2383]]
parent
936ee956
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/uggridgeometry.cc
+3
-3
3 additions, 3 deletions
grid/uggrid/uggridgeometry.cc
grid/uggrid/uggridgeometry.hh
+5
-4
5 additions, 4 deletions
grid/uggrid/uggridgeometry.hh
with
8 additions
and
7 deletions
grid/uggrid/uggridgeometry.cc
+
3
−
3
View file @
09f16cc0
...
...
@@ -94,7 +94,7 @@ inline GeometryType UGGridGeometry<mydim,coorddim,GridImp>::type() const
switch
(
mydim
)
{
case
0
:
return
vertex
;
case
1
:
return
line
;
case
1
:
return
simplex
;
case
2
:
#ifdef _2
switch
(
UG_NS
<
coorddim
>::
Tag
(
target_
))
{
...
...
@@ -127,7 +127,7 @@ inline GeometryType UGGridGeometry<mydim,coorddim,GridImp>::type() const
}
// Just to calm the compiler
return
tetrahedron
;
return
simplex
;
}
template
<
int
mydim
,
int
coorddim
,
class
GridImp
>
...
...
@@ -238,7 +238,7 @@ global(const FieldVector<typename GridImp::ctype, 2>& local) const
FieldVector
<
UGCtype
,
3
>
result
;
if
(
elementType_
==
triang
le
)
{
if
(
elementType_
==
simp
le
x
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
result
[
i
]
=
(
1.0
-
local
[
0
]
-
local
[
1
])
*
coord_
[
0
][
i
]
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/uggridgeometry.hh
+
5
−
4
View file @
09f16cc0
...
...
@@ -211,7 +211,7 @@ namespace Dune {
GeometryType
type
()
const
{
return
elementType_
;}
//! return the number of corners of this element. Corners are numbered 0...n-1
int
corners
()
const
{
return
(
elementType_
==
triang
le
)
?
3
:
4
;}
int
corners
()
const
{
return
(
elementType_
==
simp
le
x
)
?
3
:
4
;}
//! access to coordinates of corners. Index is the number of the corner
const
FieldVector
<
UGCtype
,
3
>&
operator
[]
(
int
i
)
const
{
...
...
@@ -249,7 +249,7 @@ namespace Dune {
void
setNumberOfCorners
(
int
n
)
{
assert
(
n
==
3
||
n
==
4
);
elementType_
=
(
n
==
3
)
?
triang
le
:
quadrilateral
;
elementType_
=
(
n
==
3
)
?
simp
le
x
:
cube
;
}
//! The element type, either triangle or quadrilateral
...
...
@@ -290,8 +290,9 @@ namespace Dune {
UGGridGeometry
()
{}
/** Return the element type identifier. This class always returns 'line' */
GeometryType
type
()
const
{
return
line
;}
/** \brief Return the element type identifier. This class always returns 'simplex',
because a one-dimensional simplex is a line.*/
GeometryType
type
()
const
{
return
simplex
;}
//! return the number of corners of this element. This class always returns 2
int
corners
()
const
{
return
2
;}
...
...
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