Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-geometry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Core Modules
dune-geometry
Commits
5487807d
Commit
5487807d
authored
12 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
use ReferenceElement instead of GenericReferenceElement
[[Imported from SVN: r174]]
parent
e682678b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/geometry/genericgeometry/test/checkgeometry.hh
+2
-2
2 additions, 2 deletions
dune/geometry/genericgeometry/test/checkgeometry.hh
with
2 additions
and
2 deletions
dune/geometry/genericgeometry/test/checkgeometry.hh
+
2
−
2
View file @
5487807d
...
...
@@ -55,11 +55,11 @@ namespace Dune
GeometryType
type
=
geometry
.
type
();
const
Generic
ReferenceElement
<
ctype
,
mydim
>
&
refElement
=
Generic
ReferenceElements
<
ctype
,
mydim
>::
general
(
type
);
const
ReferenceElement
<
ctype
,
mydim
>
&
refElement
=
ReferenceElements
<
ctype
,
mydim
>::
general
(
type
);
// Test whether the return value of the method 'center' corresponds to the center of the
// reference element. That is the current definition of the method.
const
FieldVector
<
ctype
,
coorddim
>
center
=
geometry
.
global
(
refElement
.
position
(
0
,
0
)
);
const
FieldVector
<
ctype
,
coorddim
>
center
=
geometry
.
global
(
refElement
.
position
(
0
,
0
)
);
if
(
std
::
abs
(
(
geometry
.
center
()
-
center
).
two_norm
()
)
>
1e-8
)
DUNE_THROW
(
Exception
,
"center() is not consistent with global(refElem.position(0,0))."
);
...
...
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