From cfe870441830d3a724558569554d9802b9dfc65b Mon Sep 17 00:00:00 2001
From: Andrew Heather <a.heather@opencfd.co.uk>
Date: Thu, 26 Nov 2015 10:13:54 +0000
Subject: [PATCH] BUG: streamLine function object - added missing file to
 Make/files

---
 src/postProcessing/functionObjects/field/Make/files            | 1 +
 .../functionObjects/field/streamLine/streamLineBase.C          | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/postProcessing/functionObjects/field/Make/files b/src/postProcessing/functionObjects/field/Make/files
index f5360c2c1a7..3f2b8f9f50c 100644
--- a/src/postProcessing/functionObjects/field/Make/files
+++ b/src/postProcessing/functionObjects/field/Make/files
@@ -30,6 +30,7 @@ readFields/readFields.C
 readFields/readFieldsFunctionObject.C
 
 streamLine/streamLine.C
+streamLine/streamLineBase.C
 streamLine/streamLineParticle.C
 streamLine/streamLineParticleCloud.C
 streamLine/streamLineFunctionObject.C
diff --git a/src/postProcessing/functionObjects/field/streamLine/streamLineBase.C b/src/postProcessing/functionObjects/field/streamLine/streamLineBase.C
index 94b7d124fea..e319081bf9a 100644
--- a/src/postProcessing/functionObjects/field/streamLine/streamLineBase.C
+++ b/src/postProcessing/functionObjects/field/streamLine/streamLineBase.C
@@ -883,7 +883,8 @@ void Foam::streamLineBase::write()
                     )
                 );
 
-                Info(log_)<< "    Writing data to " << vtkFile.path() << endl;
+                if (log_) Info
+                    << "    Writing data to " << vtkFile.path() << endl;
 
                 scalarFormatterPtr_().write
                 (
-- 
GitLab