BUG: foamToVTK incorrect symmTensor components
authormattijs <mattijs>
Thu, 10 Jun 2010 07:18:51 +0000 (10 08:18 +0100)
committermattijs <mattijs>
Thu, 10 Jun 2010 07:18:51 +0000 (10 08:18 +0100)
applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C

index f699e17..45421ae 100644 (file)
@@ -250,14 +250,16 @@ void Foam::writeFuns::insert
 
 void Foam::writeFuns::insert
 (
-    const symmTensor& pt,
+    const symmTensor& src,
     DynamicList<floatScalar>& dest
 )
 {
-    for (direction cmpt = 0; cmpt < symmTensor::nComponents; cmpt++)
-    {
-        dest.append(float(pt[cmpt]));
-    }
+    dest.append(float(src.xx()));
+    dest.append(float(src.yy()));
+    dest.append(float(src.zz()));
+    dest.append(float(src.xy()));
+    dest.append(float(src.yz()));
+    dest.append(float(src.xz()));
 }