| 88 |
|
static int Length() {return 3;} |
| 89 |
|
}; |
| 90 |
|
|
| 91 |
< |
template<class T, unsigned int Row, unsigned int Col> |
| 92 |
< |
class MPITraits< RectMatrix<T, Row, Col> > { |
| 91 |
> |
template<class T, unsigned int R, unsigned int C> |
| 92 |
> |
class MPITraits< RectMatrix<T, R, C> > { |
| 93 |
|
public: |
| 94 |
|
static MPI::Datatype Type() { return MPITraits<T>::Type(); } |
| 95 |
< |
static int Length() {return Row * Col;} |
| 95 |
> |
static int Length() {return R * C;} |
| 96 |
|
}; |
| 97 |
|
|
| 98 |
|
template<class T> |
| 149 |
|
class Plan { |
| 150 |
|
public: |
| 151 |
|
|
| 152 |
< |
Plan<T>(MPI::Intracomm comm, int nObjects) { |
| 153 |
< |
myComm = comm; |
| 152 |
> |
Plan<T>(MPI::Intracomm comm, int nObjects) : myComm(comm) { |
| 153 |
|
int nCommProcs = myComm.Get_size(); |
| 154 |
|
|
| 155 |
|
counts.resize(nCommProcs, 0); |