54Foam::oversetGAMGInterface::oversetGAMGInterface
61 const label fineLevelIndex,
62 const label coarseComm
88 localRestrictAddressing.
size()
93 for (
const label curMaster : localRestrictAddressing)
95 const auto iter = masterToCoarseFace.cfind(curMaster);
100 dynFaceRestrictAddressing.append(iter.val());
105 const label coarseI = dynFaceCells.size();
107 dynFaceRestrictAddressing.append(coarseI);
108 dynFaceCells.append(curMaster);
109 masterToCoarseFace.insert(curMaster, coarseI);
119Foam::oversetGAMGInterface::oversetGAMGInterface
130Foam::oversetGAMGInterface::oversetGAMGInterface
147 faceRestrictAddresssing
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
Abstract base class for GAMG agglomerated interfaces.
labelList faceRestrictAddressing_
Face restrict addressing.
virtual label index() const
virtual const lduInterfacePtrsList & coarseInterfaces() const
virtual const labelUList & faceCells() const
Return faceCell addressing.
labelList faceCells_
Face-cell addressing.
GAMGInterface(const GAMGInterface &)=delete
No copy construct.
virtual void write(Ostream &) const =0
Write to stream.
const_iterator cfind(const Key &key) const
Find and return an const_iterator set at the hashed entry.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A HashTable to objects of type <T> with a label key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
commsTypes
Communications types.
Smooth ATC in cells next to a set of patches supplied by type.
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches.
GAMG agglomerated cyclic AMI interface.
virtual void write(Ostream &) const
Write to stream.
virtual tmp< labelField > internalFieldTransfer(const Pstream::commsTypes commsType, const labelUList &iF) const
Transfer and return internal field adjacent to the interface.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
UPtrList< const lduInterface > lduInterfacePtrsList
Store lists of lduInterface as a UPtrList.
Field< label > labelField
Specialisation of Field<T> for label.
UList< label > labelUList
A UList of labels.