Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f96db2d6
Commit
f96db2d6
authored
Jun 13, 2017
by
Henry Weller
Committed by
Andrew Heather
Jun 13, 2017
Browse files
BUG: codedFvOptionTemplate: updated 'setValue' to 'constrain'
Resolves bug-report
https://bugs.openfoam.org/view.php?id=2579
parent
c38a0b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
etc/codeTemplates/dynamicCode/codedFvOptionTemplate.C
View file @
f96db2d6
...
...
@@ -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
...
...
etc/codeTemplates/dynamicCode/codedFvOptionTemplate.H
View file @
f96db2d6
...
...
@@ -36,10 +36,10 @@ Description
const label fieldi
)
setValue
constrain
(
fvMatrix<Type
}
>& eqn,
const label fieldi
fvMatrix<Type>& eqn,
const label fieldi
)
where :
...
...
@@ -172,7 +172,7 @@ public:
);
//- Set value
virtual
void
setValue
virtual
void
constrain
(
fvMatrix
<
$
{
TemplateType
}
>&
eqn
,
const
label
fieldi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment