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
6b90a6c2
Commit
6b90a6c2
authored
Jan 31, 2011
by
mattijs
Browse files
ENH: mapDistribute : added whichTransform to find transform from local index
parent
4212b115
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.C
View file @
6b90a6c2
...
...
@@ -29,6 +29,7 @@ License
#include
"globalIndex.H"
#include
"globalIndexAndTransform.H"
#include
"transformField.H"
#include
"ListOps.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...
...
@@ -1104,6 +1105,12 @@ Foam::mapDistribute::mapDistribute(const Xfer<mapDistribute>& map)
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
Foam
::
label
Foam
::
mapDistribute
::
whichTransform
(
const
label
index
)
const
{
return
findLower
(
transformStart_
,
index
+
1
);
}
void
Foam
::
mapDistribute
::
transfer
(
mapDistribute
&
rhs
)
{
constructSize_
=
rhs
.
constructSize_
;
...
...
src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistribute.H
View file @
6b90a6c2
...
...
@@ -385,6 +385,9 @@ public:
return
transformStart_
;
}
//- Find transform from transformElements
label
whichTransform
(
const
label
index
)
const
;
//- Calculate a schedule. See above.
static
List
<
labelPair
>
schedule
(
...
...
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