Traduction_Indice_Global_Local#

Cette classe fournit les outils pour construire l’espace virtuel d’un tableau contenant des indices d’entites geometriques.

How to cite this class in this doc#

:ref:`Traduction\_Indice\_Global\_Local <class-traduction-indice-global-local>`
[Traduction\_Indice\_Global\_Local](#class-traduction-indice-global-local)

Detailed description#

(sommets, elements, faces). Elle gere en particulier la renumerotation des elements virtuels.

List of Public Methods#

Complete Member Function Documentation#

chercher_table_inverse
int Traduction_Indice_Global_Local::chercher_table_inverse(const trustIdType sommet_global) const

Cherche i tel que table_inverse(i, 0) = = sommet_global, et renvoie table_inverse(i, 1) (l’indice local du sommet).

Si le sommet n’est pas trouve dans la table, renvoie-1. La table_inverse doit etre triee par ordre croissant de la colonne 0. La table_inverse ne doit pas avoir d’espace virtuel.

How to cite in this doc:
:ref:`int Traduction_Indice_Global_Local::chercher_table_inverse(const trustIdType sommet_global) const <public-int-traduction-indice-global-local-chercher-table-inverse-const-trustidtype-sommet-global-const>`
[int Traduction_Indice_Global_Local::chercher_table_inverse(const trustIdType sommet_global) const](#public-int-traduction-indice-global-local-chercher-table-inverse-const-trustidtype-sommet-global-const)
initialiser
void Traduction_Indice_Global_Local::initialiser(const MD_Vector &md_items)

Initialise le dictionnaire Precontition:

Les espaces distants des entites utilisees doivent avoir ete calculees

How to cite in this doc:
:ref:`void Traduction_Indice_Global_Local::initialiser(const MD_Vector &md_items) <public-void-traduction-indice-global-local-initialiser-const-md-vector-ref-md-items>`
[void Traduction_Indice_Global_Local::initialiser(const MD_Vector &md_items)](#public-void-traduction-indice-global-local-initialiser-const-md-vector-ref-md-items)
reset
void Traduction_Indice_Global_Local::reset()
How to cite in this doc:
:ref:`void Traduction_Indice_Global_Local::reset() <public-void-traduction-indice-global-local-reset>`
[void Traduction_Indice_Global_Local::reset()](#public-void-traduction-indice-global-local-reset)
Traduction_Indice_Global_Local
Traduction_Indice_Global_Local::Traduction_Indice_Global_Local()
How to cite in this doc:
:ref:`Traduction_Indice_Global_Local::Traduction_Indice_Global_Local() <public-traduction-indice-global-local-traduction-indice-global-local>`
[Traduction_Indice_Global_Local::Traduction_Indice_Global_Local()](#public-traduction-indice-global-local-traduction-indice-global-local)
traduire_espace_virtuel
int Traduction_Indice_Global_Local::traduire_espace_virtuel(IntTab &tableau) const

A partir d’un tableau dont la structure d’espace virtuel est initialisee (descripteurs elements distants et virtuels, items communs)

et contenant des indices compatibles avec le contenu des tables (indices de sommets ou d’elements selon type_table_), on remplit les elements virtuels du “tableau” en fonction des elements distants et on traduit les indices en indices locaux. (exemple, voir construire_espace_virtuel_elements et construire_espace_virtuel_faces). Valeur de retour: nombre d’indices qui n’ont pas pu etre traduits (par exemple, le sommet reference n’existe pas sur le processeur voisin)

How to cite in this doc:
:ref:`int Traduction_Indice_Global_Local::traduire_espace_virtuel(IntTab &tableau) const <public-int-traduction-indice-global-local-traduire-espace-virtuel-inttab-ref-tableau-const>`
[int Traduction_Indice_Global_Local::traduire_espace_virtuel(IntTab &tableau) const](#public-int-traduction-indice-global-local-traduire-espace-virtuel-inttab-ref-tableau-const)
traduire_indice_global_vers_local
int Traduction_Indice_Global_Local::traduire_indice_global_vers_local(const ArrOfTID &indices_globaux, ArrOfInt &indices_locaux) const

Pour debut < = i <debut + nb indices_locaux[i] = chercher l’indice local de “indices_globaux[i]”.

How to cite in this doc:
:ref:`int Traduction_Indice_Global_Local::traduire_indice_global_vers_local(const ArrOfTID &indices_globaux, ArrOfInt &indices_locaux) const <public-int-traduction-indice-global-local-traduire-indice-global-vers-local-const-arroftid-ref-indices-globaux-arrofint-ref-indices-locaux-const>`
[int Traduction_Indice_Global_Local::traduire_indice_global_vers_local(const ArrOfTID &indices_globaux, ArrOfInt &indices_locaux) const](#public-int-traduction-indice-global-local-traduire-indice-global-vers-local-const-arroftid-ref-indices-globaux-arrofint-ref-indices-locaux-const)
traduire_indice_local_vers_global
void Traduction_Indice_Global_Local::traduire_indice_local_vers_global(const ArrOfInt &indices_locaux, ArrOfTID &indices_globaux, int n) const

Transforme les indices locaux en indices globaux a l’aide la “table_” (voir initialiser).

On fait : Pour debut < = i <debut + nb indices_globaux[i] = table_[indices_locaux[i]] si indices_locaux[i] <0 alors indices_globaux[i] = - 1

How to cite in this doc:
:ref:`void Traduction_Indice_Global_Local::traduire_indice_local_vers_global(const ArrOfInt &indices_locaux, ArrOfTID &indices_globaux, int n) const <public-void-traduction-indice-global-local-traduire-indice-local-vers-global-const-arrofint-ref-indices-locaux-arroftid-ref-indices-globaux-int-n-const>`
[void Traduction_Indice_Global_Local::traduire_indice_local_vers_global(const ArrOfInt &indices_locaux, ArrOfTID &indices_globaux, int n) const](#public-void-traduction-indice-global-local-traduire-indice-local-vers-global-const-arrofint-ref-indices-locaux-arroftid-ref-indices-globaux-int-n-const)

Attributes Documentation#

md_items_ (private)
MD_Vector Traduction_Indice_Global_Local::md_items_
premier_indice_global_ (private)
trustIdType Traduction_Indice_Global_Local::premier_indice_global_ = - 100
table_ (private)
TIDVect Traduction_Indice_Global_Local::table_
table_inverse_ (private)
TIDTab Traduction_Indice_Global_Local::table_inverse_