48 auto& cellZonesField = tcellZonesField.ref();
58 const label celli = cellMap[subCelli];
60 if (!haloCells_.
test(celli))
62 cellZonesField[celli] = subVolField[subCelli];
66 return tcellZonesField;
Forwards and collection of common volume field types.
const word & name() const noexcept
Return the object name.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Generic GeometricField class.
const fvMesh & baseMesh() const noexcept
Original mesh.
Generic dimensioned Type class.
tmp< GeometricField< Type, fvPatchField, volMesh > > mapToZone(const GeometricField< Type, fvPatchField, volMesh > &subVolField) const
Map from the sub-mesh to original cell zones.
#define forAll(list, i)
Loop across all elements in list.
const labelList & cellMap() const
Return cell map.
bool test(const label pos) const
Test for True value at specified position, never auto-vivify entries.
A class for managing temporary objects.
const dimensionSet & dimensions() const noexcept
Return dimensions.