forwardFieldMapper: Rationalisation
The directFieldMapper has been renamed to forwardFieldMapper, and instances where generalFieldMapper was used instead of a more simple forward/direct type have been removed.
This commit is contained in:
@ -38,7 +38,7 @@ SourceFiles
|
||||
|
||||
#include "pointMesh.H"
|
||||
#include "pointFields.H"
|
||||
#include "generalFieldMapper.H"
|
||||
#include "forwardFieldMapper.H"
|
||||
#include "IOobjectList.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -61,51 +61,31 @@ public:
|
||||
//- Point patch field decomposer class
|
||||
class patchFieldDecomposer
|
||||
:
|
||||
public generalFieldMapper
|
||||
public labelList,
|
||||
public forwardFieldMapper
|
||||
{
|
||||
// Private Data
|
||||
// Private Member Functions
|
||||
|
||||
//- ...
|
||||
labelList directAddressing_;
|
||||
|
||||
//- Does map contain any unmapped values?
|
||||
bool hasUnmapped_;
|
||||
//- Generate the addressing
|
||||
static labelList addressing
|
||||
(
|
||||
const pointPatch& completePatch,
|
||||
const pointPatch& procPatch,
|
||||
const labelList& pointProcAddressing
|
||||
);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct given addressing
|
||||
//- Construct given patches and addressing
|
||||
patchFieldDecomposer
|
||||
(
|
||||
const pointPatch& completeMeshPatch,
|
||||
const pointPatch& procMeshPatch,
|
||||
const labelList& directAddr
|
||||
const pointPatch& completePatch,
|
||||
const pointPatch& procPatch,
|
||||
const labelList& pointProcAddressing
|
||||
);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
label size() const
|
||||
{
|
||||
return directAddressing_.size();
|
||||
}
|
||||
|
||||
bool direct() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool hasUnmapped() const
|
||||
{
|
||||
return hasUnmapped_;
|
||||
}
|
||||
|
||||
const labelUList& directAddressing() const
|
||||
{
|
||||
return directAddressing_;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user