|
Feel++ 0.91.0
|
data layout in a multi-processor environnement More...
#include <datamap.hpp>
Public Member Functions | |
Constructors, destructor | |
| DataMap () | |
| DataMap (size_type n, size_type n_local) | |
| DataMap (size_type n, std::vector< int > const &firstdof, std::vector< int > const &lastdof) | |
| DataMap (DataMap const &dm) | |
| virtual | ~DataMap () |
Operator overloads | |
| DataMap & | operator= (DataMap const &dm) |
Accessors | |
| size_type | nDof () const |
| size_type | nLocalDof () const |
| size_type | nMyDof () const |
| size_type | nDofOnProcessor (const size_type proc) const |
| size_type | nProcessors () const |
| size_type | firstDof () const |
| size_type | firstDof (const size_type proc) const |
| size_type | lastDof () const |
| size_type | lastDof (const unsigned int proc) const |
| size_type | lid (size_type GID) const |
| Returns local ID of global ID, return invalid_size_type_value if not found on this processor. | |
| size_type | gid (size_type LID) const |
| Returns global ID of local ID, return -1 if not found on this processor. | |
| bool | myGID (size_type GID) const |
| Returns true if the GID passed in belongs to the calling processor in this map, otherwise returns false. | |
| bool | myLID (size_type LID) const |
| Returns true if the LID passed in belongs to the calling processor in this map, otherwise returns false. | |
| size_type | minAllGID () const |
| Returns the minimum global ID across the entire map. | |
| size_type | maxAllGID () const |
| Returns the maximum global ID across the entire map. | |
| size_type | minMyGID () const |
| Returns the maximum global ID owned by this processor. | |
| size_type | maxMyGID () const |
| Returns the maximum global ID owned by this processor. | |
| size_type | minLID () const |
| The minimum local index value on the calling processor. | |
| size_type | maxLID () const |
| The maximum local index value on the calling processor. | |
| size_type | nGlobalElements () const |
| number of elements across all processors. | |
| size_type | nMyElements () const |
| number of elements on the calling processor. | |
| std::vector< size_type > const & | myGlobalElements () const |
| Puts list of global elements on this processor size_typeo the user-provided array. | |
| bool | closed () const |
| mpi::communicator const & | comm () const |
Methods | |
| void | close () const |
Protected Attributes | |
| bool | M_closed |
| size_type | _M_n_dofs |
| std::vector< size_type > | _M_first_df |
| std::vector< size_type > | _M_last_df |
| std::vector< size_type > | M_myglobalelements |
| mpi::communicator | M_comm |
data layout in a multi-processor environnement
| n | total size of the vector |
| n_local | local size of the vector on the curent processor |
References _M_first_df, _M_last_df, _M_n_dofs, and Feel::invalid_size_type_value.
| Feel::DataMap::DataMap | ( | size_type | n, |
| std::vector< int > const & | firstdof, | ||
| std::vector< int > const & | lastdof | ||
| ) |
| n | total size of the vector |
| firstdof | array of size n_processors containing the first index on each processor |
| lastdof | array of size n_processors containing the last index on each processor |
| bool Feel::DataMap::closed | ( | ) | const [inline] |
Referenced by myGlobalElements().
| mpi::communicator const& Feel::DataMap::comm | ( | ) | const [inline] |
Referenced by Feel::Vector< T >::comm().
proc. References _M_first_df.
| size_type Feel::DataMap::firstDof | ( | ) | const [inline] |
References _M_first_df.
Referenced by gid(), lid(), maxLID(), minAllGID(), and minMyGID().
| size_type Feel::DataMap::lastDof | ( | ) | const [inline] |
Returns the last dof index that is in local subdomain
References _M_last_df.
Referenced by gid(), lid(), maxAllGID(), maxLID(), and maxMyGID().
| size_type Feel::DataMap::lastDof | ( | const unsigned int | proc | ) | const [inline] |
Returns the last dof index that is local to subdomain proc.
References _M_last_df.
| size_type Feel::DataMap::nDof | ( | ) | const [inline] |
References _M_n_dofs.
proc. References _M_first_df, and _M_last_df.
Referenced by nLocalDof(), and nMyDof().
| size_type Feel::DataMap::nLocalDof | ( | ) | const [inline] |
References nDofOnProcessor().
Referenced by nMyElements().
| size_type Feel::DataMap::nMyDof | ( | ) | const [inline] |
References nDofOnProcessor().
std::vector<size_type> Feel::DataMap::_M_first_df [protected] |
First DOF index on processor p.
Referenced by DataMap(), firstDof(), and nDofOnProcessor().
std::vector<size_type> Feel::DataMap::_M_last_df [protected] |
Last DOF index (plus 1) on processor p.
Referenced by DataMap(), lastDof(), and nDofOnProcessor().
size_type Feel::DataMap::_M_n_dofs [protected] |
Total number of degrees of freedom.
Referenced by DataMap(), nDof(), and nGlobalElements().
1.7.4