KASKADE 7 development version
factorizationOptions.hh
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the library KASKADE 7 */
4/* https://www.zib.de/research/projects/kaskade7-finite-element-toolbox */
5/* */
6/* Copyright (C) 2024-2024 Zuse Institute Berlin */
7/* */
8/* KASKADE 7 is distributed under the terms of the ZIB Academic License. */
9/* see $KASKADE/academic.txt */
10/* */
11/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12
13#ifndef FACTORIZATION_OPTIONS
14#define FACTORIZATION_OPTIONS
15
16#include "utilities/enums.hh"
17
18namespace Kaskade
19{
26 {
28
30 : matrixProperty(matrixProperty_) {}
31
32 FactorizationOptions(MatrixProperties matrixProperty_, int verbosity_)
33 : matrixProperty(matrixProperty_), verbosity(verbosity_) {}
34
40
46 int verbosity = 0;
47
56
60 struct Mumps
61 {
62 bool inertia = false;
63 double zeroPivotThreshold = 0.0;
65 };
66
67
68}
69
70#endif
MatrixProperties
Characterizations of sparse matrix properties.
Definition: enums.hh:76
The Mumps struct allows to specify options which are exclusively relevant for the MUMPS solver.
bool inertia
States whether to determine inertia of given matrix, only considered if matrixProperty is SYMMETRIC.
double zeroPivotThreshold
Threshold that defines which pivots will be considered as zero. See CNTL(3) in MUMPS documentation.
The Options struct allows to specify several options of factorization.
MatrixProperties matrixProperty
We can specify the properties of the matrix, which might be taken into account for selecing an orderi...
struct Kaskade::FactorizationOptions::Mumps mumps
int refinementIterations
Number of refinement iterations.
int verbosity
How detailed information should be reported.
FactorizationOptions(MatrixProperties matrixProperty_, int verbosity_)
FactorizationOptions(MatrixProperties matrixProperty_)