Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

VirtualMatrix* Impala::Core::Matrix::DistributedAccess::GetPart ( int  partNr  )  [inline]

Definition at line 316 of file DistributedAccess.h.

References GetOwnerOfPart(), and mParts.

Referenced by Dump(), GetDiagonalFromPart(), GetRowFromPart(), and Impala::Persistency::DistributedAccessRepositoryInFile::WriteParts().

00317     {
00318         if (GetOwnerOfPart(partNr) != Link::Mpi::MyId())
00319         {
00320             ILOG_ERROR_NODE("GetPart: I am not the owner of part " << partNr);
00321             return 0;
00322         }
00323         int index = 0;
00324         for (int i=partNr-1 ; i>=0 ; --i)
00325         {
00326             if (GetOwnerOfPart(i) != Link::Mpi::MyId())
00327                 break;
00328             index++;
00329         }
00330         if ((index < 0) || (index >= mParts.size()))
00331         {
00332             ILOG_ERROR_NODE("GetPart: cannot find part " << partNr <<
00333                             " (index = " << index << ")");
00334             return 0;
00335         }
00336         return mParts[index];
00337     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:19 2011 for ImpalaSrc by  doxygen 1.5.1