mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
removed access to offsets from globalIndex
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user