42 const label len = result.
size();
45 if (len !=
x.size() || len !=
y.size())
48 <<
"Components sizes do not match: " << len <<
" ("
56 for (label i=0; i < len; ++i)
58 result[i] = value_type(
x[i],
y[i]);
71 const label len = input.size();
74 if (len !=
x.size() || len !=
y.size())
77 <<
"Components sizes do not match: " << len <<
" ("
85 for (label i=0; i < len; ++i)
Generic templated field type.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
void unzip(const FieldField< Field, SphericalTensor< Cmpt > > &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
void zip(FieldField< Field, SphericalTensor< Cmpt > > &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
constexpr char nl
The newline '\n' character (0x0a)