Go to the documentation of this file.
48 coarseInterfaces_(coarseInterfaces),
50 faceRestrictAddressing_(is)
74 return interfaceInternalField<label>(internalData);
86 if (fineCoeffs.size() != faceRestrictAddressing_.size())
89 <<
"Size of coefficients " << fineCoeffs.size()
90 <<
" does not correspond to the size of the restriction "
91 << faceRestrictAddressing_.size()
94 if (debug &&
max(faceRestrictAddressing_) > size())
97 <<
"Face restrict addressing addresses outside of coarse interface"
98 <<
" size. Max addressing:" <<
max(faceRestrictAddressing_)
99 <<
" coarse size:" << size()
103 forAll(faceRestrictAddressing_, ffi)
105 coarseCoeffs[faceRestrictAddressing_[ffi]] += fineCoeffs[ffi];
108 return tcoarseCoeffs;
114 os << faceCells_ <<
token::SPACE << faceRestrictAddressing_;
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void write(Ostream &) const =0
Write to stream.
#define forAll(list, i)
Loop across all elements in list.
GAMGInterface(const GAMGInterface &)
Disallow default bitwise copy construct.
A class for managing temporary objects.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
labelList faceRestrictAddressing_
Face restrict addressing.
labelList faceCells_
Face-cell addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Abstract base class for GAMG agglomerated interfaces.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual tmp< scalarField > agglomerateCoeffs(const scalarField &fineCoeffs) const
Agglomerating the given fine-level coefficients and return.
errorManip< error > abort(error &err)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< Field< Type > > interfaceInternalField(const UList< Type > &internalData) const
Return the interface internal field of the given field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
void combine(const GAMGInterface &)
Merge the next level with this level.