From d2a0363d64758a0b2c76184c677e5959df3273cb Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 13 Jun 2008 20:13:25 +0100 Subject: [PATCH] Bug-fix: http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/8030 --- src/OpenFOAM/primitives/Tensor/TensorI.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/primitives/Tensor/TensorI.H b/src/OpenFOAM/primitives/Tensor/TensorI.H index ce286710d6..f02ace3db9 100644 --- a/src/OpenFOAM/primitives/Tensor/TensorI.H +++ b/src/OpenFOAM/primitives/Tensor/TensorI.H @@ -719,7 +719,7 @@ operator+(const Tensor& t1, const SymmTensor& st2) return Tensor ( t1.xx() + st2.xx(), t1.xy() + st2.xy(), t1.xz() + st2.xz(), - t1.yx() + st2.xy(), t1.yy() + st2.yy(), t1.yz() + st2.yy(), + t1.yx() + st2.xy(), t1.yy() + st2.yy(), t1.yz() + st2.yz(), t1.zx() + st2.xz(), t1.zy() + st2.yz(), t1.zz() + st2.zz() ); } @@ -745,7 +745,7 @@ operator-(const Tensor& t1, const SymmTensor& st2) return Tensor ( t1.xx() - st2.xx(), t1.xy() - st2.xy(), t1.xz() - st2.xz(), - t1.yx() - st2.xy(), t1.yy() - st2.yy(), t1.yz() - st2.yy(), + t1.yx() - st2.xy(), t1.yy() - st2.yy(), t1.yz() - st2.yz(), t1.zx() - st2.xz(), t1.zy() - st2.yz(), t1.zz() - st2.zz() ); }