TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Solv_GCP_NS.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_GCP_NS_included
17#define Solv_GCP_NS_included
18
19#include <solv_iteratif.h>
20#include <Precond_base.h>
21#include <TRUST_Deriv.h>
22#include <SolveurSys.h>
23
24class Param;
25
27{
28 Declare_instanciable(Solv_GCP_NS);
29public :
30
31 int resoudre_systeme(const Matrice_Base&, const DoubleVect&, DoubleVect&) override;
32 int resoudre_systeme(const Matrice_Base&, const DoubleVect&, DoubleVect&, int) override;
33 inline void reinit() override;
34 inline int supporte_matrice_morse_sym() override { return 0; } // Matrice_Morse_Sym non supporte
35
36protected :
37 void set_param(Param& param) const override;
38 int lire_motcle_non_standard(const Motcle&, Entree&) override;
39
42 OWN_PTR(Precond_base) le_precond_;
43};
44
46{
48 solveur_poisson1->reinit();
49 solveur_poisson0->reinit();
50}
51
52#endif
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.
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
OWN_PTR(Precond_base) le_precond_
SolveurSys solveur_poisson0
Definition Solv_GCP_NS.h:41
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.
int resoudre_systeme(const Matrice_Base &, const DoubleVect &, DoubleVect &) override
void set_param(Param &param) const override
int supporte_matrice_morse_sym() override
Definition Solv_GCP_NS.h:34
void reinit() override
Definition Solv_GCP_NS.h:45
SolveurSys solveur_poisson1
Definition Solv_GCP_NS.h:40
virtual void reinit()
class SolveurSys Un SolveurSys represente n'importe qu'elle classe
Definition SolveurSys.h:32