KASKADE 7 development version
Loading...
Searching...
No Matches
fem
fem/pardiso_solve.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) 2002-2011 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 PARDISO_SOLVE_HH
14
#define PARDISO_SOLVE_HH
15
16
17
#include <vector>
18
#include <memory>
25
class
PARDISOFactorization
26
{
27
public
:
28
34
enum
MatrixStructure
{
35
STRUCTURALLY_SYMMETRIC
= 1,
36
SYMMETRIC_POSITIVE_DEFINITE
= 2,
37
SYMMETRIC_INDEFINITE
= -2,
38
NONSYMMETRIC
= 11
39
};
40
41
43
59
PARDISOFactorization
(
int
n,
60
int
mtype_,
61
std::vector<int>
const
& ridx,
62
std::vector<int>
const
& cidx,
63
std::vector<double>
const
& values);
64
65
~PARDISOFactorization
();
66
71
void
solve
(std::vector<double>
const
& b,
72
std::vector<double>& x)
const
;
73
private
:
74
mutable
int
N;
75
mutable
int
n;
76
mutable
std::vector<int> Ap, Ai;
77
mutable
std::vector<double> Az;
78
mutable
int
phase;
79
80
mutable
int
maxfct, mnum, mtype, nrhs, msglvl, error, idum;
81
mutable
double
ddum;
82
static
bool
first;
83
mutable
std::vector<int> iparm;
84
mutable
std::vector<long int> pt;
85
};
86
87
88
#endif
PARDISOFactorization::MatrixStructure
MatrixStructure
Definition
fem/pardiso_solve.hh:34
PARDISOFactorization::STRUCTURALLY_SYMMETRIC
@ STRUCTURALLY_SYMMETRIC
Definition
fem/pardiso_solve.hh:35
PARDISOFactorization::NONSYMMETRIC
@ NONSYMMETRIC
Definition
fem/pardiso_solve.hh:38
PARDISOFactorization::SYMMETRIC_POSITIVE_DEFINITE
@ SYMMETRIC_POSITIVE_DEFINITE
Definition
fem/pardiso_solve.hh:36
PARDISOFactorization::SYMMETRIC_INDEFINITE
@ SYMMETRIC_INDEFINITE
Definition
fem/pardiso_solve.hh:37
PARDISOFactorization::~PARDISOFactorization
~PARDISOFactorization()
PARDISOFactorization::solve
void solve(std::vector< double > const &b, std::vector< double > &x) const
PARDISOFactorization::PARDISOFactorization
PARDISOFactorization(int n, int mtype_, std::vector< int > const &ridx, std::vector< int > const &cidx, std::vector< double > const &values)
Version of constructor leaving input data in triplet format (aka coordinate format) unchanged.
Generated on
for KASKADE 7 development version by
1.14.0