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
d2b57781
Commit
d2b57781
authored
3 years ago
by
Oliver Sander
Browse files
Options
Downloads
Plain Diff
Merge branch 'export-cholmod-factor' into 'master'
Export the cholmod_factor object See merge request
core/dune-istl!455
parents
58fc99f0
e4545673
No related branches found
No related tags found
1 merge request
!455
Export the cholmod_factor object
Pipeline
#41731
passed
3 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
dune/istl/cholmod.hh
+22
-2
22 additions, 2 deletions
dune/istl/cholmod.hh
with
26 additions
and
2 deletions
CHANGELOG.md
+
4
−
0
View file @
d2b57781
...
...
@@ -6,6 +6,10 @@
In some numerical tests with a Stokes system this lead to earlier termination when using the same
termination criterion.
-
The
`Cholmod`
class now provides access to the
`cholmod_factor`
class that is
used by
`CHOLMOD`
itself to store the Cholesky factor. This can be used to
use the more advanced features of
`CHOLMOD`
.
# Release 2.8
-
Extended the MatrixMarket IO functions for reading and writing vectors with
...
...
This diff is collapsed.
Click to expand it.
dune/istl/cholmod.hh
+
22
−
2
View file @
d2b57781
...
...
@@ -238,7 +238,7 @@ public:
nonZeros
,
// # of nonzeroes
1
,
// indices are sorted ( 1 = true)
1
,
// matrix is "packed" ( 1 = true)
-
1
,
// stype of matrix ( -1 = cosider the lower part only )
-
1
,
// stype of matrix ( -1 = co
n
sider the lower part only )
CHOLMOD_REAL
,
// xtype of matrix ( CHOLMOD_REAL = single array, no complex numbers)
&
c_
// cholmod_common ptr
),
deleter
);
...
...
@@ -337,9 +337,29 @@ public:
return
c_
;
}
/** \brief The CHOLMOD data structure that stores the factorization
*
* Access to this is necessary for the more advanced features of CHOLMOD.
* You need to know what you are doing!
*/
cholmod_factor
&
cholmodFactor
()
{
return
*
L_
;
}
/** \brief The CHOLMOD data structure that stores the factorization
*
* Access to this is necessary for the more advanced features of CHOLMOD.
* You need to know what you are doing!
*/
const
cholmod_factor
&
cholmodFactor
()
const
{
return
*
L_
;
}
private
:
// create a destrucable unique_ptr
// create a std::unique_ptr to a cholmod_dense object with a deleter
// that calls the appropriate cholmod cleanup routine
auto
make_cholmod_dense
(
cholmod_dense
*
x
,
cholmod_common
*
c
)
{
const
auto
deleter
=
[
c
](
auto
*
p
)
{
...
...
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