const OtherNumber & factor)
{
using product_type = typename ProductType<Number, OtherNumber>::type;
- SymmetricTensor<rank_, dim, product_type> tt = t;
+ SymmetricTensor<rank_, dim, product_type> tt(t);
tt /= internal::NumberType<product_type>::value(factor);
return tt;
}
DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<rank_, dim>
operator*(const SymmetricTensor<rank_, dim> &t, const double factor)
{
- SymmetricTensor<rank_, dim> tt = t;
+ SymmetricTensor<rank_, dim> tt(t);
tt *= factor;
return tt;
}
DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<rank_, dim>
operator*(const double factor, const SymmetricTensor<rank_, dim> &t)
{
- SymmetricTensor<rank_, dim> tt = t;
+ SymmetricTensor<rank_, dim> tt(t);
tt *= factor;
return tt;
}
DEAL_II_CONSTEXPR inline SymmetricTensor<rank_, dim>
operator/(const SymmetricTensor<rank_, dim> &t, const double factor)
{
- SymmetricTensor<rank_, dim> tt = t;
+ SymmetricTensor<rank_, dim> tt(t);
tt /= factor;
return tt;
}