Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
8587f2a1
Commit
8587f2a1
authored
Apr 19, 2017
by
mark
Browse files
ENH: support default profiling settings from etc/controlDict (issue
#441
)
- patch from Bernhard Gschaider
parent
aa73f2e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
etc/controlDict
View file @
8587f2a1
...
...
@@ -78,6 +78,15 @@ OptimisationSwitches
stopAtWriteNowSignal -1;
}
/* Can specify fallback profiling settings
profiling
{
active true;
cpuInfo true;
memInfo false;
sysInfo true;
}
*/
DebugSwitches
{
...
...
src/OpenFOAM/db/Time/Time.C
View file @
8587f2a1
...
...
@@ -324,6 +324,11 @@ void Foam::Time::setControls()
void
Foam
::
Time
::
setMonitoring
(
const
bool
forceProfiling
)
{
const
dictionary
*
profilingDict
=
controlDict_
.
subDictPtr
(
"profiling"
);
if
(
!
profilingDict
)
{
// ... or from etc/controlDict
profilingDict
=
debug
::
controlDict
().
subDictPtr
(
"profiling"
);
}
// initialize profiling on request
// otherwise rely on profiling entry within controlDict
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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