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
Modules
Visualization
Commits
179f2e81
Commit
179f2e81
authored
May 02, 2018
by
Mark OLESEN
Browse files
ENH: disable function objects in post-process mode
- prevents accidental overwrite of runtime conversions.
parent
b6fd326d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/catalyst/areaMesh/catalystFaMesh.C
View file @
179f2e81
...
...
@@ -113,6 +113,14 @@ Foam::functionObjects::catalystFaMesh::catalystFaMesh
backends_
(),
adaptor_
()
{
if
(
postProcess
)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<<
type
()
<<
" disabled in post-process mode"
<<
exit
(
FatalError
);
}
read
(
dict
);
}
...
...
src/catalyst/cloud/catalystCloud.C
View file @
179f2e81
...
...
@@ -85,6 +85,14 @@ Foam::functionObjects::catalystCloud::catalystCloud
selectFields_
(),
adaptor_
()
{
if
(
postProcess
)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<<
type
()
<<
" disabled in post-process mode"
<<
exit
(
FatalError
);
}
read
(
dict
);
}
...
...
src/catalyst/volMesh/catalystFvMesh.C
View file @
179f2e81
...
...
@@ -112,6 +112,14 @@ Foam::functionObjects::catalystFvMesh::catalystFvMesh
backends_
(),
adaptor_
()
{
if
(
postProcess
)
{
// Disable for post-process mode.
// Emit as FatalError for the try/catch in the caller.
FatalError
<<
type
()
<<
" disabled in post-process mode"
<<
exit
(
FatalError
);
}
read
(
dict
);
}
...
...
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