mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: mapDistribute : added whichTransform to find transform from local index
This commit is contained in:
@ -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_;
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user