72 |
|
static int Length() { return 1; }; |
73 |
|
}; |
74 |
|
|
75 |
< |
template<> inline MPI::Datatype MPITraits<int>::Type() { return MPI_INT; } |
76 |
< |
template<> inline MPI::Datatype MPITraits<RealType>::Type() { return MPI_REALTYPE; } |
75 |
> |
template<> inline MPI::Datatype MPITraits<int>::Type() { return MPI::INT; } |
76 |
> |
template<> inline MPI::Datatype MPITraits<RealType>::Type() { return MPI::REALTYPE; } |
77 |
|
|
78 |
|
template<class T, unsigned int Dim> |
79 |
|
class MPITraits< Vector<T, Dim> > { |
120 |
|
if (nProc % i == 0) nColumns = i; |
121 |
|
} |
122 |
|
|
123 |
– |
int nRows = nProc / nColumns; |
123 |
|
rowIndex_ = myRank / nColumns; |
124 |
|
columnIndex_ = myRank % nColumns; |
125 |
|
|