From bb51bcb700e9b94d8d8d5f9740f40fe15ccc82e0 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Thu, 13 Jan 2011 12:33:14 +0000 Subject: [PATCH] ENH: Encapsulate warning in debug scope --- src/lagrangian/basic/Cloud/Cloud.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lagrangian/basic/Cloud/Cloud.H b/src/lagrangian/basic/Cloud/Cloud.H index e45f72ee567..f82e361d36f 100644 --- a/src/lagrangian/basic/Cloud/Cloud.H +++ b/src/lagrangian/basic/Cloud/Cloud.H @@ -253,7 +253,8 @@ public: //- Increment the nTrackingRescues counter void trackingRescue() const { - if (++nTrackingRescues_ % size() == 0) + nTrackingRescues_++; + if (cloud::debug && nTrackingRescues_ % size() == 0) { Pout<< " " << nTrackingRescues_ << " tracking rescues " << endl; -- GitLab