KASKADE 7 development version
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>
26{
27public:
28
38 NONSYMMETRIC = 11
39 };
40
41
43
60 int mtype_,
61 std::vector<int> const& ridx,
62 std::vector<int> const& cidx,
63 std::vector<double> const& values);
64
66
71 void solve(std::vector<double> const& b,
72 std::vector<double>& x) const;
73private:
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
Factorization with DirectType::PARDISO.
void solve(std::vector< double > const &b, std::vector< double > &x) const
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.