|
TUV-x
|
Utility for mapping among arrays. More...
Data Types | |
| interface | map_t |
| Map between arrays. More... | |
| interface | pair_t |
| Matched pair. More... | |
Functions/Subroutines | |
| type(map_t) function | constructor (config, from_labels, to_labels) |
| Constructs a map_t object. | |
| subroutine | apply (this, from, to) |
| Transfers data from source to destination array based on map. | |
| integer function | pack_size (this, comm) |
| Returns the size of a binary buffer required to pack the map. | |
| subroutine | mpi_pack (this, buffer, position, comm) |
| Packs the map onto a character buffer. | |
| subroutine | mpi_unpack (this, buffer, position, comm) |
| Unpacks a map from a character buffer. | |
| subroutine | print_map (this, from_labels, to_labels, out_unit) |
| Prints the map details to a specified output unit. | |
| subroutine | add_default_matches (this, from_labels, to_labels, always) |
| Adds default matches by name to the map. | |
| subroutine | validate (this, config, from_labels, to_labels) |
| Validates the map based on user-selected options. | |
| type(pair_t) function | pair_constructor (config, from_labels, to_labels) |
| Constructor of pair_t objects. | |
| integer function | pair_pack_size (this, comm) |
| Returns the size of a binary buffer required to pack the pair. | |
| subroutine | pair_mpi_pack (this, buffer, position, comm) |
| Packs the pair onto a character buffer. | |
| subroutine | pair_mpi_unpack (this, buffer, position, comm) |
| Unpacks a pair from a character buffer. | |
Utility for mapping among arrays.
|
private |
Adds default matches by name to the map.
If the always option is set to false, only unmatched source elements are included in the default matching
| [in,out] | this | Map |
| [in] | from_labels | Source array element labels |
| [in] | to_labels | Destination array element labels |
| [in] | always | Flag indicating whether to always add default matches, or only do so for unmatched source elements |
|
private |
Transfers data from source to destination array based on map.
| [in] | this | Map |
| [in] | from | Source array |
| [out] | to | Destination array |
|
private |
Constructs a map_t object.
| [in,out] | config | Map configuration |
| [in] | from_labels | Source array element labels |
| [in] | to_labels | Destination array element labels |
|
private |
Packs the map onto a character buffer.
| [in] | this | Map to pack |
| [in,out] | buffer | Memory buffer |
| [in,out] | position | Current buffer position |
| [in] | comm | MPI communicator |
|
private |
Unpacks a map from a character buffer.
| [out] | this | Map to unpack |
| [in,out] | buffer | Memory buffer |
| [in,out] | position | Current buffer position |
| [in] | comm | MPI communicator |
|
private |
Returns the size of a binary buffer required to pack the map.
| [in] | this | Map to pack |
| [in] | comm | MPI communicator |
|
private |
Constructor of pair_t objects.
| [in,out] | config | Matched pair configuration |
| [in] | from_labels | Source array element labels |
| [in] | to_labels | Destination array element labels |
|
private |
Packs the pair onto a character buffer.
| [in] | this | Pair to pack |
| [in,out] | buffer | Memory buffer |
| [in,out] | position | Current buffer position |
| [in] | comm | MPI communicator |
|
private |
Unpacks a pair from a character buffer.
| [out] | this | Pair to unpack |
| [in,out] | buffer | Memory buffer |
| [in,out] | position | Current buffer position |
| [in] | comm | MPI communicator |
|
private |
Returns the size of a binary buffer required to pack the pair.
| [in] | this | Pair to pack |
| [in] | comm | MPI communicator |
|
private |
Prints the map details to a specified output unit.
| [in] | this | Map |
| [in] | from_labels | Source array element labels |
| [in] | to_labels | Destination array element labels |
| [in] | out_unit | Output unit |
|
private |
Validates the map based on user-selected options.
| [in] | this | Map |
| [in,out] | config | Map configuration |
| [in] | from_labels | Source array element labels |
| [in] | to_labels | Destination array element labels |