mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: allow top-level definition of function object name scoping
- this refines commit c233961d45, which added prefix scoping.
Default is now off (v2106 behaviour).
The 'useNamePrefix' keyword can be specified on a per function basis
or at the top-level of "functions".
```
functions
{
errors warn;
useNamePrefix true;
func1
{
type ...;
useNamePrefix false;
}
func2
{
type ...;
// Uses current default for useNamePrefix
}
}
```
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2106 |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -33,10 +33,13 @@ momentum1
|
||||
log true;
|
||||
timeStart 0;
|
||||
timeEnd 1000;
|
||||
|
||||
executeControl timeStep;
|
||||
executeInterval 1;
|
||||
writeControl writeTime;
|
||||
writeInterval -1;
|
||||
|
||||
useNamePrefix true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ momentum
|
||||
type momentum;
|
||||
libs (fieldFunctionObjects);
|
||||
log true;
|
||||
useNamePrefix true;
|
||||
|
||||
executeInterval 10;
|
||||
writeControl writeTime;
|
||||
|
||||
Reference in New Issue
Block a user