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
e72ff89c
Commit
e72ff89c
authored
2 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
test BCRSMatrix implicit build mode with zero rows.
parent
59188482
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!510
[bugfix] Fixes implicit build mode of BCRSMatrix with zero rows.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/istl/test/bcrsimplicitbuild.cc
+10
-0
10 additions, 0 deletions
dune/istl/test/bcrsimplicitbuild.cc
with
10 additions
and
0 deletions
dune/istl/test/bcrsimplicitbuild.cc
+
10
−
0
View file @
e72ff89c
...
...
@@ -49,6 +49,15 @@ void setMatrix(M& m)
m
[
3
][
8
]
=
1.0
;
}
void
testZeroSizeImplicitBuild
()
{
ScalarMatrix
m
(
0
,
0
,
3
,
0.1
,
ScalarMatrix
::
implicit
);
ScalarMatrix
::
CompressionStatistics
stats
=
m
.
compress
();
ScalarMatrix
m1
(
0
,
0
,
0
,
0
,
ScalarMatrix
::
implicit
);
stats
=
m1
.
compress
();
}
void
testImplicitBuild
()
{
ScalarMatrix
m
(
10
,
10
,
3
,
0.1
,
ScalarMatrix
::
implicit
);
...
...
@@ -353,6 +362,7 @@ int main()
ret
+=
testConstBracketOperatorBeforeCompress
();
testImplicitMatrixBuilder
();
testImplicitMatrixBuilderExtendedConstructor
();
testZeroSizeImplicitBuild
();
}
catch
(
Dune
::
Exception
&
e
)
{
std
::
cerr
<<
e
<<
std
::
endl
;
return
1
;
...
...
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