16#include <IJK_VDF_converter.h>
18#include <Domaine_VF.h>
19#include <Probleme_base.h>
20#include <Interprete_bloc.h>
40 <<
" (sorry, this is a hack)" << finl;
46 ArrOfInt direction_mapping(3);
47 bool perio_flag_x =
false;
48 bool perio_flag_y =
false;
49 bool perio_flag_z =
false;
50 direction_mapping[0] = 0;
51 direction_mapping[1] = 1;
52 direction_mapping[2] = 2;
54 param.ajouter(
"splitting", &splitting);
55 param.ajouter(
"x_maps_to", &direction_mapping[0]);
56 param.dictionnaire(
"i",0);
57 param.dictionnaire(
"j",1);
58 param.dictionnaire(
"k",2);
59 param.ajouter(
"y_maps_to", &direction_mapping[1]);
60 param.dictionnaire(
"i",0);
61 param.dictionnaire(
"j",1);
62 param.dictionnaire(
"k",2);
63 param.ajouter(
"z_maps_to", &direction_mapping[2]);
64 param.dictionnaire(
"i",0);
65 param.dictionnaire(
"j",1);
66 param.dictionnaire(
"k",2);
68 param.ajouter_flag(
"perio_i", &perio_flag_x);
69 param.ajouter_flag(
"perio_j", &perio_flag_y);
70 param.ajouter_flag(
"perio_k", &perio_flag_z);
72 param.lire_avec_accolades(is);
77 Cerr <<
"Error in IJK_VDF_converter::readOn: splitting must be an array of 3 (ex splitting 3 8 8 8)" << finl;
82 const Domaine_VF& domaine_vdf = ref_cast(Domaine_VF, pb.
domaine_dis());
84 Domaine_IJK grid_geom;
86 direction_mapping[0], direction_mapping[1], direction_mapping[2],
87 perio_flag_x, perio_flag_y, perio_flag_z);
89 domaine_ijk_.initialize_splitting(grid_geom, splitting[0], splitting[1], splitting[2]);
116 Cerr <<
"Error in IJK_VDF_converter::get_vdf_to_ijk: unknown loc" << finl;
void initialize_from_unstructured(const Domaine &, int direction_for_x, int direction_for_y, int direction_for_z, bool perio_x, bool perio_y, bool perio_z)
Localisation
Localisation sub class.
const Domaine & domaine() const
Class defining operators and methods for all reading operation in an input flow (file,...
const Nom & le_nom() const override
Donne le nom de l'Objet_U Methode a surcharger : renvoie "neant" dans cette implementation.
VDF_to_IJK vdf_to_ijk_elem_
static const char * get_conventional_name()
VDF_to_IJK vdf_to_ijk_nodes_
const VDF_to_IJK & get_vdf_to_ijk(Domaine_IJK::Localisation) const
static Objet_U & objet_global(const Nom &nom)
cherche l'objet demande dans l'Interprete_bloc courant (Interprete_bloc::interprete_courant()) et dan...
classe Objet_U Cette classe est la classe de base des Objets de TRUST
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
const Domaine_dis_base & domaine_dis() const
Renvoie le domaine discretise associe au probleme.
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Classe de base des flux de sortie.
_SIZE_ size_array() const