mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
codedFvOptionTemplate: updated 'setValue' to 'constrain'
Resolves bug-report https://bugs.openfoam.org/view.php?id=2579
This commit is contained in:
@ -179,7 +179,7 @@ void ${typeName}FvOption${SourceType}::addSup
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ${typeName}FvOption${SourceType}::setValue
|
void ${typeName}FvOption${SourceType}::constrain
|
||||||
(
|
(
|
||||||
fvMatrix<${TemplateType}>& eqn,
|
fvMatrix<${TemplateType}>& eqn,
|
||||||
const label fieldi
|
const label fieldi
|
||||||
@ -187,7 +187,7 @@ void ${typeName}FvOption${SourceType}::setValue
|
|||||||
{
|
{
|
||||||
if (${verbose:-false})
|
if (${verbose:-false})
|
||||||
{
|
{
|
||||||
Info<<"${typeName}FvOption${SourceType}::setValue()\n";
|
Info<<"${typeName}FvOption${SourceType}::constrain()\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
//{{{ begin code
|
//{{{ begin code
|
||||||
|
|||||||
@ -36,9 +36,9 @@ Description
|
|||||||
const label fieldi
|
const label fieldi
|
||||||
)
|
)
|
||||||
|
|
||||||
setValue
|
constrain
|
||||||
(
|
(
|
||||||
fvMatrix<Type}>& eqn,
|
fvMatrix<Type}>& eqn,
|
||||||
const label fieldi
|
const label fieldi
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Set value
|
//- Set value
|
||||||
virtual void setValue
|
virtual void constrain
|
||||||
(
|
(
|
||||||
fvMatrix<${TemplateType}>& eqn,
|
fvMatrix<${TemplateType}>& eqn,
|
||||||
const label fieldi
|
const label fieldi
|
||||||
|
|||||||
Reference in New Issue
Block a user