16#include <Sources_Multiphase_base.h>
18#include <Probleme_base.h>
19#include <Matrix_tools.h>
30 const std::set<std::string>& diagonal_fields,
bool handle_pression)
32 for (
auto &&n_m : matrices)
34 bool is_diag = diagonal_fields.count(n_m.first);
35 bool is_pression = handle_pression && (n_m.first ==
"pression");
36 if (!is_diag && !is_pression)
continue;
46 for (
int e = 0; e < ne; e++)
47 for (
int n = 0; n < Nk; n++)
52 for (
int e = 0; e < ne; e++)
53 for (
int n = 0, m = 0; n < Nk; n++, m += (M > 1))
virtual DoubleTab & valeurs()=0
Class defining operators and methods for all reading operation in an input flow (file,...
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
int nb_colonnes() const override
Return local number of columns (=size on the current proc).
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
class Probleme_base It is a Probleme_U that is not a coupling.
const Champ_base & get_champ(const Motcle &nom) const override
Base class for output streams.
Source_base A Source_base object is a term appearing on the right-hand side of an.
static void dimensionner_blocs_diagonal(matrices_t matrices, const Probleme_base &pb, int ne, int ne_tot, int Nk, const std::set< std::string > &diagonal_fields, bool handle_pression)
Allocates diagonal stencils in the given matrices for field names listed in diagonal_fields (and opti...
_SIZE_ dimension_tot(int) const override