Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
6779036a
Commit
6779036a
authored
8 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
ENH: paraFoam -touch-proc option for processor directories
- Can be useful when investigating mesh topologies
parent
8005e2b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/paraFoam
+22
-5
22 additions, 5 deletions
bin/paraFoam
with
22 additions
and
5 deletions
bin/paraFoam
+
22
−
5
View file @
6779036a
...
...
@@ -39,12 +39,14 @@ usage() {
Usage:
${
0
##*/
}
[OPTION] [--] [PARAVIEW_OPTION]
options:
-block use blockMesh reader
(uses .blockMesh extension)
-block use blockMesh reader (uses .blockMesh extension)
-case <dir> specify alternative case directory, default is the cwd
-region <name> specify alternative mesh region
-touch only create the file (eg, .blockMesh, .OpenFOAM, etc)
-touchAll create .blockMesh, .OpenFOAM files (and for all regions)
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-touch create the file (eg, .blockMesh, .OpenFOAM, .foam, ...)
-touch-all | -touchAll
create .blockMesh, .OpenFOAM files (and for all regions)
-touch-proc same as '-touch' but for each processor
-vtk | -builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-help print the usage
--help paraview help
...
...
@@ -102,11 +104,16 @@ do
unset
plugin
shift
;;
-touchAll
)
-touch-all
|
-touchAll
)
optTouch
=
all
unset
plugin
shift
;;
-touch-proc
*
)
optTouch
=
processor
unset
plugin
shift
;;
--
)
shift
break
# Stop here, treat balance as paraview options
...
...
@@ -205,6 +212,16 @@ all)
done
exit
0
;;
processor
)
for
i
in
processor
*
do
(
cd
$i
2> /dev/null
&&
touch
"
${
caseFile
%.*
}
#
${
i
#processor
}
.
$extension
"
)
done
echo
"Created '
$caseFile
' for processor directories"
1>&2
exit
0
;;
true
)
touch
"
$caseFile
"
echo
"Created '
$caseFile
'"
1>&2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment