From f96db2d600d33a1785b48d6faf562f3269df4609 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 13 Jun 2017 16:52:16 +0100 Subject: [PATCH] BUG: codedFvOptionTemplate: updated 'setValue' to 'constrain' Resolves bug-report https://bugs.openfoam.org/view.php?id=2579 --- etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C | 4 ++-- etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C b/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C index 0e78abcf2a..e7c9ab22c9 100644 --- a/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C +++ b/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C @@ -179,7 +179,7 @@ void ${typeName}FvOption${SourceType}::addSup } -void ${typeName}FvOption${SourceType}::setValue +void ${typeName}FvOption${SourceType}::constrain ( fvMatrix<${TemplateType}>& eqn, const label fieldi @@ -187,7 +187,7 @@ void ${typeName}FvOption${SourceType}::setValue { if (${verbose:-false}) { - Info<<"${typeName}FvOption${SourceType}::setValue()\n"; + Info<<"${typeName}FvOption${SourceType}::constrain()\n"; } //{{{ begin code diff --git a/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H b/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H index 63e30f0869..03234c2035 100644 --- a/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H +++ b/etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H @@ -36,10 +36,10 @@ Description const label fieldi ) - setValue + constrain ( - fvMatrix& eqn, - const label fieldi + fvMatrix& eqn, + const label fieldi ) where : @@ -172,7 +172,7 @@ public: ); //- Set value - virtual void setValue + virtual void constrain ( fvMatrix<${TemplateType}>& eqn, const label fieldi