|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
This class provides tools to build the virtual space of an array containing indices of geometric entities. More...
Public Member Functions | |
| Traduction_Indice_Global_Local () | |
| void | initialiser (const MD_Vector &md_items) |
| Initializes the dictionary. Precondition: | |
| void | reset () |
| void | traduire_indice_local_vers_global (const ArrOfInt &indices_locaux, ArrOfTID &indices_globaux, int n) const |
| Transforms local indices into global indices using "table_" (see initialiser). | |
| int | traduire_indice_global_vers_local (const ArrOfTID &indices_globaux, ArrOfInt &indices_locaux) const |
| For debut <= i < debut+nb, indices_locaux[i] = look up the local index of "indices_globaux[i]". | |
| int | traduire_espace_virtuel (IntTab &tableau) const |
| Starting from an array whose virtual space structure is initialized (remote and virtual element descriptors, common items). | |
| int | chercher_table_inverse (const trustIdType sommet_global) const |
| Searches for i such that table_inverse(i, 0) == sommet_global, and returns table_inverse(i, 1) (the local index of the vertex). | |
This class provides tools to build the virtual space of an array containing indices of geometric entities.
(vertices, elements, faces). It handles in particular the renumbering of virtual elements.
Definition at line 1387 of file Scatter.cpp.
|
inline |
Definition at line 1390 of file Scatter.cpp.
| int Traduction_Indice_Global_Local::chercher_table_inverse | ( | const trustIdType | sommet_global | ) | const |
Searches for i such that table_inverse(i, 0) == sommet_global, and returns table_inverse(i, 1) (the local index of the vertex).
If the vertex is not found in the table, returns -1. table_inverse must be sorted in ascending order of column 0. table_inverse must not have a virtual space.
Definition at line 1471 of file Scatter.cpp.
| void Traduction_Indice_Global_Local::initialiser | ( | const MD_Vector & | md_items | ) |
Initializes the dictionary. Precondition:
The remote spaces of the entities used must have been computed.
Definition at line 1419 of file Scatter.cpp.
| void Traduction_Indice_Global_Local::reset | ( | ) |
Definition at line 1457 of file Scatter.cpp.
| int Traduction_Indice_Global_Local::traduire_espace_virtuel | ( | IntTab & | tab | ) | const |
Starting from an array whose virtual space structure is initialized (remote and virtual element descriptors, common items).
and containing indices compatible with the content of the tables (vertex or element indices depending on type_table_), fills the virtual elements of "tableau" based on remote elements and translates the indices to local indices. (example, see construire_espace_virtuel_elements and construire_espace_virtuel_faces). Return value: number of indices that could not be translated (e.g. the referenced vertex does not exist on the neighboring processor)
Definition at line 1576 of file Scatter.cpp.
| int Traduction_Indice_Global_Local::traduire_indice_global_vers_local | ( | const ArrOfTID & | indices_globaux, |
| ArrOfInt & | indices_locaux ) const |
For debut <= i < debut+nb, indices_locaux[i] = look up the local index of "indices_globaux[i]".
| (indices_globaux) | the array of global indices to translate |
| (indices_locaux) | on output, the local indices or -1 if the global index was not found. Return value: number of indices not found (global indices that do not correspond to any local index). |
Definition at line 1529 of file Scatter.cpp.
| void Traduction_Indice_Global_Local::traduire_indice_local_vers_global | ( | const ArrOfInt & | indices_locaux, |
| ArrOfTID & | indices_globaux, | ||
| int | nb_items_a_traiter ) const |
Transforms local indices into global indices using "table_" (see initialiser).
Does: For debut <= i < debut+nb indices_globaux[i] = table_[indices_locaux[i]] if indices_locaux[i] < 0 then indices_globaux[i] = -1
Definition at line 1513 of file Scatter.cpp.