OOFEM 3.0
Loading...
Searching...
No Matches
superlusolver.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef superlusolver_h
36#define superlusolver_h
37
38#include "sparselinsystemnm.h"
39#include "sparsemtrx.h"
40#include "convergedreason.h"
41#include "floatarray.h"
42#include "SUPERLU_MT/include/slu_mt_ddefs.h"
43
44#define _IFT_SuperLUSolver_Name "superlu"
45#define _IFT_SuperLUSolver_Permcspec "permcspec"
46
47namespace oofem {
48class Domain;
49class EngngModel;
50class FloatMatrix;
60{
61private:
62 SparseMtrx::SparseMtrxVersionType lhsVersion; // timestamp of existing decomposition
63 SuperMatrix A, L, U;
64 bool AAllocated=false, LAllocated=false, UAllocated=false;
65 bool permAllocated = false;
66 int_t *perm_c;
67 int_t *perm_r;
69
70public:
73 virtual ~SuperLUSolver();
82 SparseMtrxType giveRecommendedMatrix(bool symmetric) const override { return SMT_CompCol; }
83
84
85 void initializeFrom(InputRecord &ir) override;
86 const char *giveClassName() const override { return "SuperLUSolver"; }
88
89private:
90
91 int_t cholnzcnt(int_t neqns, int_t *xadj, int_t *adjncy, int_t *perm, int_t *invp, int_t *etpar, int_t *colcnt, int_t *nlnz, int_t *part_super_L);
92 void convertRhs(SuperMatrix *A, FloatArray &x);
93 int_t dPrint_CompCol_Matrix(SuperMatrix *A);
94 int_t dPrint_Dense_Matrix(SuperMatrix *A);
95};
96} // end namespace oofem
97#endif // imlsolver_h
SparseLinearSystemNM(Domain *d, EngngModel *m)
Constructor.
long SparseMtrxVersionType
Definition sparsemtrx.h:65
int_t dPrint_CompCol_Matrix(SuperMatrix *A)
SuperLUSolver(Domain *d, EngngModel *m)
const char * giveClassName() const override
SparseMtrx::SparseMtrxVersionType lhsVersion
ConvergedReason solve(SparseMtrx &A, FloatArray &b, FloatArray &x) override
int_t cholnzcnt(int_t neqns, int_t *xadj, int_t *adjncy, int_t *perm, int_t *invp, int_t *etpar, int_t *colcnt, int_t *nlnz, int_t *part_super_L)
LinSystSolverType giveLinSystSolverType() const override
void convertRhs(SuperMatrix *A, FloatArray &x)
int_t dPrint_Dense_Matrix(SuperMatrix *A)
SparseMtrxType giveRecommendedMatrix(bool symmetric) const override
@ SMT_CompCol
Compressed column.
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011