Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1589afb9
Commit
1589afb9
authored
May 29, 2009
by
mattijs
Browse files
added localSize member function
parent
feb846bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndex.H
View file @
1589afb9
...
...
@@ -84,6 +84,9 @@ public:
//- Start of procI+1 data
inline
const
labelList
&
offsets
()
const
;
//- my local size
inline
label
localSize
()
const
;
//- Global sum of localSizes
inline
label
size
()
const
;
...
...
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H
View file @
1589afb9
...
...
@@ -34,6 +34,17 @@ inline const Foam::labelList& Foam::globalIndex::offsets() const
}
inline
Foam
::
label
Foam
::
globalIndex
::
localSize
()
const
{
return
(
Pstream
::
myProcNo
()
==
0
?
offsets_
[
Pstream
::
myProcNo
()]
:
offsets_
[
Pstream
::
myProcNo
()]
-
offsets_
[
Pstream
::
myProcNo
()
-
1
]
);
}
inline
Foam
::
label
Foam
::
globalIndex
::
size
()
const
{
return
offsets_
[
Pstream
::
nProcs
()
-
1
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment