Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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-istl
Commits
09c4d040
Commit
09c4d040
authored
6 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Test for some required matrix constructors
parent
11eba9f2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!282
Improve matrix testing
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/istl/test/bcrsmatrixtest.cc
+3
-0
3 additions, 0 deletions
dune/istl/test/bcrsmatrixtest.cc
dune/istl/test/matrixtest.hh
+8
-0
8 additions, 0 deletions
dune/istl/test/matrixtest.hh
with
11 additions
and
0 deletions
dune/istl/test/bcrsmatrixtest.cc
+
3
−
0
View file @
09c4d040
...
...
@@ -25,6 +25,9 @@ int testBCRSMatrix(int size)
// Test the matrix norms
testNorms
(
mat
);
// Test whether matrix class has the required constructors
testMatrixConstructibility
<
Matrix
>
();
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
dune/istl/test/matrixtest.hh
+
8
−
0
View file @
09c4d040
...
...
@@ -20,6 +20,14 @@
namespace
Dune
{
/** \brief Test whether the given type is default- and copy-constructible */
template
<
typename
Matrix
>
void
testMatrixConstructibility
()
{
static_assert
(
std
::
is_default_constructible
<
Matrix
>::
value
,
"Matrix type is not default constructible"
);
static_assert
(
std
::
is_copy_constructible
<
Matrix
>::
value
,
"Matrix type is not copy constructible"
);
}
/** \brief Test whether a given type implements all the norms required from a dune-istl matrix
*/
template
<
typename
Matrix
>
...
...
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