removed access to offsets from globalIndex

This commit is contained in:
mattijs
2009-06-23 13:15:19 +01:00
parent d17234707b
commit c5c00b64ba
3 changed files with 13 additions and 6 deletions

View File

@ -81,8 +81,10 @@ public:
// Member Functions
//- Start of procI+1 data
inline const labelList& offsets() const;
////- Start of procI+1 data
//inline const labelList& offsets() const;
//- Start of procI data
inline label offset(const label procI) const;
//- my local size
inline label localSize() const;

View File

@ -28,9 +28,15 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::labelList& Foam::globalIndex::offsets() const
//inline const Foam::labelList& Foam::globalIndex::offsets() const
//{
// return offsets_;
//}
inline Foam::label Foam::globalIndex::offset(const label procI) const
{
return offsets_;
return (procI == 0 ? 0 : offsets_[procI-1]);
}

View File

@ -354,8 +354,7 @@ public:
//- Range of global indices that can be returned.
virtual label globalSize() const
{
const labelList& offsets = globalTris().offsets();
return offsets[offsets.size()-1];
return globalTris().size();
}
virtual void findNearest