30 void Foam::forwardOrAssignFieldMapper::unmappedError()
const
33 <<
"A field could not be mapped because a value was not provided for "
38 void Foam::forwardOrAssignPatchFieldMapper::unmappedError()
const
41 <<
"The " << fieldTypeName_ <<
" " << fieldBaseTypeName_
42 <<
" for patch " << patchName_ <<
" of field " << internalFieldName_
43 <<
" could not be mapped because a value was not provided for "
49 void Foam::forwardOrAssignFieldMapper::map
52 const Field<Type>& mapF
60 f.map(mapF, addressing_);
77 void Foam::forwardOrAssignFieldMapper::mapOrAssign
81 const Type& unmappedVal
89 f.map(mapF, addressing_);
97 const Type& unmappedVal
101 mapOrAssign(
tf.ref(), mapF, unmappedVal);
107 void Foam::forwardOrAssignFieldMapper::mapOrAssign
111 const FieldFunctor<Type>& unmappedFunc
119 f.map(mapF, addressing_);
131 mapOrAssign(
tf.ref(), mapF, unmappedFunc);
Pre-declare SubField and related Field type.
Class used to lazily evaluate fields.
Forward field mapper that permits assigning a value on unmapped elements.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define IMPLEMENT_FIELD_MAPPER_MAP_OPERATOR(Type, mapperType)
#define IMPLEMENT_FIELD_MAPPER_MAP_OR_ASSIGN_OPERATOR(Type, mapperType)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)