Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
agnumpde
dune-solvers
Commits
e586f82c
Commit
e586f82c
authored
13 years ago
by
Uli Sack
Committed by
usack
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
test for consistency of N(); so far fails for optimized compilation
[[Imported from SVN: r5794]]
parent
28948f0c
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/solvers/test/sumoperatortest.cc
+13
-0
13 additions, 0 deletions
dune/solvers/test/sumoperatortest.cc
with
13 additions
and
0 deletions
dune/solvers/test/sumoperatortest.cc
+
13
−
0
View file @
e586f82c
...
...
@@ -148,6 +148,19 @@ bool check()
LowRankOperator
<
LowRankFactorType
>
lr_factor_reborn
=
sum_op
.
lowRankMatrix
();
SparseMatrixType
sparse_matrix_reborn
=
sum_op
.
sparseMatrix
();
/* test for consistency of return value of N() */
if
(
sum_op
.
N
()
!=
sum_op
.
sparseMatrix
().
N
())
{
std
::
cout
<<
"SumOperator::N does not return correct value for the SumOperator constructed from given matrices. (returns "
<<
sum_op
.
N
()
<<
", should return "
<<
sum_op
.
sparseMatrix
().
N
()
<<
")"
<<
std
::
endl
;
passed
=
false
;
}
if
(
sum_op_default
.
N
()
!=
sum_op_default
.
sparseMatrix
().
N
())
{
std
::
cout
<<
"SumOperator::N does not return correct value for the default-constructed SumOperator."
<<
std
::
endl
;
passed
=
false
;
}
if
(
passed
)
std
::
cout
<<
"passed"
;
std
::
cout
<<
std
::
endl
;
...
...
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