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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tobias Leibner
dune-common
Commits
863de1c8
Commit
863de1c8
authored
20 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
improved test for jacobianInverse
[[Imported from SVN: r1518]]
parent
24e51c19
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/test/gridcheck.cc
+30
-2
30 additions, 2 deletions
grid/test/gridcheck.cc
with
30 additions
and
2 deletions
grid/test/gridcheck.cc
+
30
−
2
View file @
863de1c8
...
...
@@ -22,6 +22,34 @@ class CheckError : public Dune::Exception {};
// --- compile-time check of element-interface
template
<
class
Geometry
,
bool
doCheck
>
struct
JacobianInverse
{
static
void
check
(
const
Geometry
&
e
)
{
typedef
typename
Geometry
::
ctype
ctype
;
Dune
::
FieldVector
<
ctype
,
Geometry
::
mydimension
>
v
;
e
.
jacobianInverse
(
v
);
}
JacobianInverse
()
{
c
=
check
;
};
void
(
*
c
)(
const
Geometry
&
);
};
template
<
class
Geometry
>
struct
JacobianInverse
<
Geometry
,
false
>
{
static
void
check
(
const
Geometry
&
e
)
{}
JacobianInverse
()
{
c
=
check
;
};
void
(
*
c
)(
const
Geometry
&
);
};
template
<
class
Geometry
,
int
codim
,
int
dim
>
struct
ElementInterface
{
...
...
@@ -43,8 +71,8 @@ struct ElementInterface
e
.
local
(
g
);
e
.
checkInside
(
v
);
e
.
integrationElement
(
v
);
#warning disabled, because it is only supported if codim==0
//
e.jacobianInverse(v
);
JacobianInverse
<
Geometry
,
(
int
)
Geometry
::
coorddimension
==
(
int
)
Geometry
::
mydimension
>
(
);
}
ElementInterface
()
{
...
...
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