From 24e7261a918168a441d16c0c41ae5ac195790644 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Mon, 13 Jan 2014 14:54:18 +0000
Subject: [PATCH] ENH: Improved output messages

---
 .../constraint/cyclic/cyclicPolyPatch.C           | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
index 9f451bd7721..01dee2c5e4b 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2014 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -36,6 +36,7 @@ License
 #include "diagTensor.H"
 #include "transformField.H"
 #include "SubField.H"
+#include "unitConversion.H"
 
 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
 
@@ -272,10 +273,14 @@ void Foam::cyclicPolyPatch::calcTransforms
 
             if (debug)
             {
+                scalar theta = radToDeg(acos(n0 & n1));
+
                 Pout<< "cyclicPolyPatch::calcTransforms :"
                     << " patch:" << name()
                     << " Specified rotation :"
-                    << " n0:" << n0 << " n1:" << n1 << endl;
+                    << " n0:" << n0 << " n1:" << n1
+                    << " swept angle: " << theta << " [deg]"
+                    << endl;
             }
 
             // Extended tensor from two local coordinate systems calculated
@@ -432,10 +437,14 @@ void Foam::cyclicPolyPatch::getCentresAndAnchors
 
                 if (debug)
                 {
+                    scalar theta = radToDeg(acos(n0 & n1));
+
                     Pout<< "cyclicPolyPatch::getCentresAndAnchors :"
                         << " patch:" << name()
                         << " Specified rotation :"
-                        << " n0:" << n0 << " n1:" << n1 << endl;
+                        << " n0:" << n0 << " n1:" << n1
+                        << " swept angle: " << theta << " [deg]"
+                        << endl;
                 }
 
                 // Extended tensor from two local coordinate systems calculated
-- 
GitLab