#include <source/hierarchy/patches/ProcessorMapping.h>
Public Member Functions | |
| ProcessorMapping () | |
| ProcessorMapping (const int n) | |
| ProcessorMapping (const ProcessorMapping &mapping) | |
| ProcessorMapping (const tbox::Array< int > &mapping) | |
| ~ProcessorMapping () | |
| void | setMappingSize (const int n) |
| void | setNumberNodes (const int n) |
| int | getProcessorAssignment (const int i) const |
| void | setProcessorAssignment (const int i, const int p) |
| tbox::Array< int > | getProcessorMapping () const |
| void | setProcessorMapping (const tbox::Array< int > &mapping) |
| int | getNumberOfLocalIndices () const |
| const tbox::Array< int > & | getLocalIndices () const |
| int | getSizeOfMappingArray () const |
| bool | isMappingLocal (const int i) const |
|
|
Create a default processor mapping array with 0 elements. Before the mapping can be used, its size should be set using the function setMappingSize() and each element of the mapping should be set by setProcessorAssignment(). |
|
|
Create a processor mapping array with enough space for n elements. All elements of the mapping are initialized to processor zero, but they should be set by setProcessorAssignment() later. |
|
|
Create a new processor mapping and copy the processor assignments from the argument. |
|
|
Create a new processor mapping and get processor assignments from the the tbox::Array<int> argument. |
|
|
The destructor simply releases the storage for the mapping. |
|
|
Resize the mapping so that it has n elements. Before it can be used, each element should be set using setProcessorAssignment(). |
|
|
Sets the number of nodes to n. IMPORTANT NOTE: This method should only be used for testing purposes. Under normal circumstances, the number of nodes is set by a call to tbox::MPI::getNodes() and should NOT be changed. |
|
|
Return the processor assignment for the specified patch index. |
|
||||||||||||
|
Set the processor assignment for the specified patch index. |
|
|
Return an tbox::Array<int> of the processor mappings. |
|
|
Sets the processor mappings from an tbox::Array<int>. Remaps the processors so that patches are not accidentally mapped to non-existent nodes. |
|
|
Return the number of local indices (that is, those indices mapped to the local processor). |
|
|
Return an array containing the local indices (that is, those indices mapped to the local processor). |
|
|
Return the total number of indices in the mapping array. |
|
|
Check whether the specified index is a local index (that is, mapped to the local processor). |
1.4.2