#include <MLAPI_Space.h>
Inheritance diagram for MLAPI::Space:
Public Member Functions | |
Constructors and Destructors | |
| Space () | |
| Default constructor, defines an empty space. | |
| Space (const int NumGlobalElements, const int NumMyElements=-1) | |
| Constructor with specified number of global and local elements. | |
| Space (const Epetra_Map &Map) | |
| Constructor with specified Epetra_Map. | |
| Space (const int NumGlobalElements, const int NumMyElements, const int *MyGlobalElements) | |
| Constructor for non-linear distributions. | |
| Space (const Space &RHS) | |
| Copy constructor. | |
| ~Space () | |
| Destructor. | |
Reshape methods | |
| void | Reshape () |
Resets this object. | |
| void | Reshape (const int NumGlobalElements, const int NumMyElements=-1) |
| Resets the dimension of the space by specifying the local number of elements. | |
| void | Reshape (const int NumGlobalElements, const int NumMyElements, const int *MyGlobalElements) |
| Reset the dimension of the space by specifying the local number of elements and their global numbering (starting from 0). | |
Overloaded operators | |
| Space & | operator= (const Space &RHS) |
| Operator =. | |
| bool | operator== (const Space &RHS) const |
Returns true if this Space is equivalent to RHS. | |
| bool | operator!= (const Space &RHS) const |
Returns true if this Space is not equivalent to RHS. | |
| Space & | operator= (const string &Label) |
Sets the Label of this object. | |
| int | operator() (int i) const |
Returns the global ID of local element i. | |
Get and Set methods | |
| int | GetNumMyElements () const |
| Returns the local number of elements on the calling process. | |
| int | GetNumGlobalElements () const |
| Returns the global number of elements. | |
| int | GetOffset () const |
| Returns the global ID of the first element on the calling process (for linear distributions only). | |
| bool | IsLinear () const |
Returns true if the decomposition among processors is linear. | |
|
const Teuchos::RefCountPtr< Epetra_IntSerialDenseVector > | GetRCPMyGlobalElements () const |
| Returns a pointer to the list of global nodes. | |
Miscellanous methods | |
| std::ostream & | Print (std::ostream &os, const bool verbose=true) const |
Prints on ostream basic information about this object. | |
|
||||||||||||
|
Constructor with specified number of global and local elements. Constructs a space with linear distribution.
|
|
||||||||||||||||
|
Constructor for non-linear distributions.
|
1.3.9.1