Commit c5c00b64 authored by mattijs's avatar mattijs
Browse files

removed access to offsets from globalIndex

parent d1723470
......@@ -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;
......
......@@ -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]);
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment