TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Solv_Cholesky.h
1/****************************************************************************
2* Copyright (c) 2026, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Solv_Cholesky_included
17#define Solv_Cholesky_included
18
19#include <Matrice_Morse_Sym.h>
20#include <TRUSTTabs_forward.h>
21#include <SolveurSys_base.h>
23class Matrice_Morse;
24class Param;
25
27{
28 Declare_instanciable_sans_constructeur_ni_destructeur(Solv_Cholesky);
29
30public :
31
32 inline Solv_Cholesky();
33 inline ~Solv_Cholesky() override;
34
35 int resoudre_systeme(const Matrice_Base&, const DoubleVect&, DoubleVect& ) override;
36
37 inline int resoudre_systeme(const Matrice_Base& M, const DoubleVect& A, DoubleVect& B, int niter_max) override
38 {
39 return resoudre_systeme(M, A, B);
40 }
41 inline int solveur_direct() const override { return 1; }
42
43protected :
44 void set_param(Param& param) const override;
45 int lire_motcle_non_standard(const Motcle&, Entree&) override;
46
47 int Cholesky(const Matrice_Morse_Sym&, const DoubleVect&, DoubleVect& );
48 int Fact_Cholesky(const Matrice_Morse_Sym&, const int ); // met a jour matrice_bande_factorisee_fortran_
52};
53
54
55
60
62{
63 //if ( matrice_bande_factorisee_fortran_ ) delete[] matrice_bande_factorisee_fortran_;
64}
65
66#endif
67
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Classe Matrice_Base Classe de base de la hierarchie des matrices.
Classe Matrice_Morse_Sym Represente une matrice M (creuse) symetrique stockee au format Morse.
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
void set_param(Param &param) const override
int solveur_direct() const override
int resoudre_systeme(const Matrice_Base &, const DoubleVect &, DoubleVect &) override
Matrice_Morse_Sym matrice_de_travail
int Fact_Cholesky(const Matrice_Morse_Sym &, const int)
int resoudre_systeme(const Matrice_Base &M, const DoubleVect &A, DoubleVect &B, int niter_max) override
int Cholesky(const Matrice_Morse_Sym &, const DoubleVect &, DoubleVect &)
ArrOfDouble matrice_bande_factorisee_fortran_
~Solv_Cholesky() override
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.