diff --git a/src/OpenFOAM/primitives/Tensor/TensorI.H b/src/OpenFOAM/primitives/Tensor/TensorI.H index 974129af2c..94957e2e08 100644 --- a/src/OpenFOAM/primitives/Tensor/TensorI.H +++ b/src/OpenFOAM/primitives/Tensor/TensorI.H @@ -1043,6 +1043,10 @@ operator&(const Tensor& t1, const SymmTensor& st2) //- Inner-product of a Tensor and a Vector template +#if defined(__GNUC__) && !defined(__clang__) +// Workaround for gcc (11+) that fails to handle tensor dot vector +__attribute__((optimize("no-tree-vectorize"))) +#endif inline typename innerProduct, Vector>::type operator&(const Tensor& t, const Vector& v) {