mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Vector: added operator=(scalar)
This commit is contained in:
@ -123,6 +123,11 @@ public:
|
|||||||
(
|
(
|
||||||
const Foam::List<Vector<Cmpt>>&
|
const Foam::List<Vector<Cmpt>>&
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
|
||||||
|
// Member Operators
|
||||||
|
|
||||||
|
inline void operator=(const scalar);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -111,6 +111,18 @@ inline const Vector<Cmpt>& Vector<Cmpt>::centre
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Cmpt>
|
||||||
|
inline void Vector<Cmpt>::operator=
|
||||||
|
(
|
||||||
|
const scalar s
|
||||||
|
)
|
||||||
|
{
|
||||||
|
VectorSpace<Vector<Cmpt>, Cmpt, 3>::operator=(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Cmpt>
|
template<class Cmpt>
|
||||||
|
|||||||
@ -133,6 +133,7 @@ public:
|
|||||||
inline void operator+=(const VectorSpace<Form, Cmpt, nCmpt>&);
|
inline void operator+=(const VectorSpace<Form, Cmpt, nCmpt>&);
|
||||||
inline void operator-=(const VectorSpace<Form, Cmpt, nCmpt>&);
|
inline void operator-=(const VectorSpace<Form, Cmpt, nCmpt>&);
|
||||||
|
|
||||||
|
inline void operator=(const scalar);
|
||||||
inline void operator*=(const scalar);
|
inline void operator*=(const scalar);
|
||||||
inline void operator/=(const scalar);
|
inline void operator/=(const scalar);
|
||||||
|
|
||||||
|
|||||||
@ -218,6 +218,16 @@ inline void VectorSpace<Form, Cmpt, nCmpt>::operator-=
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Form, class Cmpt, int nCmpt>
|
||||||
|
inline void VectorSpace<Form, Cmpt, nCmpt>::operator=
|
||||||
|
(
|
||||||
|
const scalar s
|
||||||
|
)
|
||||||
|
{
|
||||||
|
VectorSpaceOps<nCmpt,0>::eqOpS(*this, s, eqOp<Cmpt>());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Form, class Cmpt, int nCmpt>
|
template<class Form, class Cmpt, int nCmpt>
|
||||||
inline void VectorSpace<Form, Cmpt, nCmpt>::operator*=
|
inline void VectorSpace<Form, Cmpt, nCmpt>::operator*=
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user