From e5f147a211a2e7fff1fad1e1a51a07dff23841aa Mon Sep 17 00:00:00 2001 From: Kutalmis Bercin <kutalmis.bercin@esi-group.com> Date: Thu, 8 May 2025 12:23:04 +0100 Subject: [PATCH] STYLE: report active/inactive state flag for fvOptions (fixes #3356) --- src/finiteVolume/cfdTools/general/fvOptions/fvOption.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/cfdTools/general/fvOptions/fvOption.C b/src/finiteVolume/cfdTools/general/fvOptions/fvOption.C index df2d261f4dd..7f405c903b5 100644 --- a/src/finiteVolume/cfdTools/general/fvOptions/fvOption.C +++ b/src/finiteVolume/cfdTools/general/fvOptions/fvOption.C @@ -72,7 +72,10 @@ Foam::fv::option::option active_(dict_.getOrDefault("active", true)), log(true) { - Log << incrIndent << indent << "Source: " << name_ << endl << decrIndent; + Log << incrIndent + << indent << "Source: " << name_ << endl + << indent << "State: " << (active_ ? "active" : "inactive") << endl + << decrIndent; } -- GitLab