49 (ourSizes.
x() != newSizes.
x() ? 0x100 : 0)
50 | (ourSizes.
y() != newSizes.
y() ? 0x010 : 0)
51 | (ourSizes.
z() != newSizes.
z() ? 0x001 : 0)
70 if (ourSizes.
z() == 1)
80 if ((ourSizes.
x()*ourSizes.
y()) == newSizes.
x()*newSizes.
y())
94 const label ni =
min(ourSizes.
x(), newSizes.
x());
95 const label nj =
min(ourSizes.
y(), newSizes.
y());
96 const label nk =
min(ourSizes.
z(), newSizes.
z());
98 for (label
k=0;
k<nk; ++
k)
100 for (label j=0; j<nj; ++j)
102 for (label i=0; i<ni; ++i)
104 newContent(i,j,
k) = ourContent(i,j,
k);
128 sizes() = rhs.
sizes();
138 if (
this != &(rhs()))
140 sizes() = rhs().
sizes();
142 Field<Type>::operator=(rhs());
const labelVector & sizes() const
Return i,j,k addressing sizes.
void operator=(const IjkField< Type > &rhs)
Copy assignment.
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
patchWriters resize(patchIds.size())
const Cmpt & y() const noexcept
Access to the vector y component.
label k
Boltzmann constant.
Generic templated field type.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Generic templated field type with i-j-k addressing.
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
void resize(const labelVector &newSizes)
Change dimensions. Fill new values with Zero.
static constexpr const zero Zero
Global zero (0)