Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
catalyst
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Community
catalyst
Commits
fc136d27
Commit
fc136d27
authored
May 02, 2018
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: disable function objects in post-process mode
- prevents accidental overwrite of runtime conversions.
parent
14eaf2dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
src/catalyst/areaMesh/catalystFaMesh.C
src/catalyst/areaMesh/catalystFaMesh.C
+8
-0
src/catalyst/cloud/catalystCloud.C
src/catalyst/cloud/catalystCloud.C
+8
-0
src/catalyst/volMesh/catalystFvMesh.C
src/catalyst/volMesh/catalystFvMesh.C
+8
-0
tutorials/incompressible/icoFoam/cavity/system/scripts/writeMesh.py
...incompressible/icoFoam/cavity/system/scripts/writeMesh.py
+1
-1
No files found.
src/catalyst/areaMesh/catalystFaMesh.C
View file @
fc136d27
...
...
@@ -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 @
fc136d27
...
...
@@ -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 @
fc136d27
...
...
@@ -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
);
}
...
...
tutorials/incompressible/icoFoam/cavity/system/scripts/writeMesh.py
View file @
fc136d27
...
...
@@ -71,4 +71,4 @@ def DoCoProcessing(datadescription):
coprocessor
.
WriteImages
(
datadescription
,
rescale_lookuptable
=
False
)
# Live Visualization, if enabled.
coprocessor
.
DoLiveVisualization
(
datadescription
,
"localhost"
,
4444
)
coprocessor
.
DoLiveVisualization
(
datadescription
,
"localhost"
,
22222
)
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