37 const label fineLevelIndex
42 if (
ff.size() != fineToCoarse.
size())
45 <<
"field does not correspond to level " << fineLevelIndex
46 <<
" sizes: field = " <<
ff.size()
47 <<
" level = " << fineToCoarse.
size()
55 cf[fineToCoarse[i]] +=
ff[i];
64 const Field<Type>& cf,
65 const label coarseLevelIndex
68 const labelList& fineToCoarse = restrictAddressing_[coarseLevelIndex];
72 ff[i] = cf[fineToCoarse[i]];
void size(const label n)
Older name for setAddressableSize.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
PtrList< labelField > restrictAddressing_
Cell restriction addressing array.
A traits class, which is primarily used for primitives and vector-space.
void prolongField(Field< Type > &ff, const Field< Type > &cf, const label coarseLevelIndex) const
Prolong (interpolate by injection) cell field.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
errorManip< error > abort(error &err)
List< label > labelList
A List of labels.
const FieldField< fvPatchField, Type > & ff(const FieldField< fvPatchField, Type > &bf)
void restrictField(Field< Type > &cf, const Field< Type > &ff, const label fineLevelIndex) const
Restrict (integrate by summation) cell field.