mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: various reinterpret_cast to enable strict-aliasing
This commit is contained in:
@ -100,6 +100,14 @@ public:
|
||||
//- Construct given SymmTensor
|
||||
inline Tensor(const SymmTensor<Cmpt>&);
|
||||
|
||||
//- Construct given the three vector components
|
||||
inline Tensor
|
||||
(
|
||||
const Vector<Cmpt>& x,
|
||||
const Vector<Cmpt>& y,
|
||||
const Vector<Cmpt>& z
|
||||
);
|
||||
|
||||
//- Construct given the nine components
|
||||
inline Tensor
|
||||
(
|
||||
@ -116,14 +124,6 @@ public:
|
||||
|
||||
// Access
|
||||
|
||||
inline const Vector<Cmpt>& x() const;
|
||||
inline const Vector<Cmpt>& y() const;
|
||||
inline const Vector<Cmpt>& z() const;
|
||||
|
||||
inline Vector<Cmpt>& x();
|
||||
inline Vector<Cmpt>& y();
|
||||
inline Vector<Cmpt>& z();
|
||||
|
||||
inline const Cmpt& xx() const;
|
||||
inline const Cmpt& xy() const;
|
||||
inline const Cmpt& xz() const;
|
||||
@ -144,6 +144,13 @@ public:
|
||||
inline Cmpt& zy();
|
||||
inline Cmpt& zz();
|
||||
|
||||
// Access vector components.
|
||||
// Note: returning const only to find out lhs usage
|
||||
|
||||
inline const Vector<Cmpt> x() const;
|
||||
inline const Vector<Cmpt> y() const;
|
||||
inline const Vector<Cmpt> z() const;
|
||||
|
||||
//- Transpose
|
||||
inline Tensor<Cmpt> T() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user