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
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
Patrick Jaap
dune-istl
Commits
c383fc2f
Commit
c383fc2f
authored
1 year ago
by
Patrick Jaap
Committed by
Patrick Jaap
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Prepare UMFPACK for MultiTypeBlockMatrix
parent
dbd5c61e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
dune/istl/umfpack.hh
+21
-0
21 additions, 0 deletions
dune/istl/umfpack.hh
with
25 additions
and
0 deletions
CHANGELOG.md
+
4
−
0
View file @
c383fc2f
...
...
@@ -5,6 +5,10 @@ SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
# Master (will become release 2.10)
-
`UMFPACK`
is extended to arbitrary blocked matrix structures. This includes
`MultiTypeBlockMatrix`
. The external interface is unchanged.
However, internally the
`BCCSMatrixInitializer`
is replaced by direct calls of
`flatMatrixForEach`
similar to
`Cholmod`
. This requires a
compatible vector field of "ignored" degrees of freedom. The method
`setSubMatrix`
with a top-level index set is preserved for compatibility.
-
The internal storage in
`MatrixIndexSet`
was changed from
`std::set`
to a sorted
`std::vector`
(with a
`std::set`
fallback for very dense rows) to improve performance. The stored index
type was changed from
`std::size_t`
to
`uint32_t`
to reduce memory consumption and improve
...
...
This diff is collapsed.
Click to expand it.
dune/istl/umfpack.hh
+
21
−
0
View file @
c383fc2f
...
...
@@ -18,6 +18,8 @@
#include
<dune/istl/bccsmatrixinitializer.hh>
#include
<dune/istl/bcrsmatrix.hh>
#include
<dune/istl/foreach.hh>
#include
<dune/istl/multitypeblockmatrix.hh>
#include
<dune/istl/multitypeblockvector.hh>
#include
<dune/istl/solvers.hh>
#include
<dune/istl/solvertype.hh>
#include
<dune/istl/solverfactory.hh>
...
...
@@ -195,6 +197,25 @@ namespace Dune {
using
range_type
=
BlockVector
<
T
,
A
>
;
};
// to make the `UMFPackVectorChooser` work with `MultiTypeBlockMatrix`, we need to add an intermediate step for the rows, which are typically `MultiTypeBlockVector`
template
<
typename
FirstBlock
,
typename
...
Blocks
>
struct
UMFPackVectorChooser
<
MultiTypeBlockVector
<
FirstBlock
,
Blocks
...
>
>
{
/** @brief The type of the domain of the solver */
using
domain_type
=
MultiTypeBlockVector
<
typename
UMFPackVectorChooser
<
FirstBlock
>::
domain_type
,
typename
UMFPackVectorChooser
<
Blocks
>::
domain_type
...
>
;
/** @brief The type of the range of the solver */
using
range_type
=
typename
UMFPackVectorChooser
<
FirstBlock
>::
range_type
;
};
// specialization for `MultiTypeBlockMatrix` with `MultiTypeBlockVector` rows
template
<
typename
FirstRow
,
typename
...
Rows
>
struct
UMFPackVectorChooser
<
MultiTypeBlockMatrix
<
FirstRow
,
Rows
...
>
>
{
/** @brief The type of the domain of the solver */
using
domain_type
=
typename
UMFPackVectorChooser
<
FirstRow
>::
domain_type
;
/** @brief The type of the range of the solver */
using
range_type
=
MultiTypeBlockVector
<
typename
UMFPackVectorChooser
<
FirstRow
>::
range_type
,
typename
UMFPackVectorChooser
<
Rows
>::
range_type
...
>
;
};
// dummy class to represent no BitVector
struct
NoBitVector
...
...
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