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
e0baf040
Commit
e0baf040
authored
7 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: include .foam file as well in paraFoam -touch-all
parent
e8ec236c
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
-7
22 additions, 7 deletions
bin/paraFoam
with
22 additions
and
7 deletions
bin/paraFoam
+
22
−
7
View file @
e0baf040
...
...
@@ -44,7 +44,7 @@ options:
-region <name> specify alternative mesh region
-touch create the file (eg, .blockMesh, .OpenFOAM, .foam, ...)
-touch-all | -touchAll
create .blockMesh, .OpenFOAM files (
and
for all regions)
create .blockMesh,
.foam,
.OpenFOAM files (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
...
...
@@ -59,6 +59,21 @@ USAGE
exit
1
}
# Report error and exit
die
()
{
exec
1>&2
echo
echo
"Error encountered:"
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
echo
echo
"See '
${
0
##*/
}
-help' for usage"
echo
exit
1
}
#-------------------------------------------------------------------------------
# Do a nice exit to give paraview an opportunity to clean up
unset
FOAM_ABORT
...
...
@@ -90,12 +105,12 @@ do
shift
;;
-case
)
[
"$#"
-ge
2
]
||
usag
e
"'
$1
' option requires an argument"
cd
"
$2
"
2>/dev/null
||
usag
e
"directory does not exist:
'
$2
'"
[
"$#"
-ge
2
]
||
di
e
"'
$1
' option requires an argument"
cd
"
$2
"
2>/dev/null
||
di
e
"directory does not exist: '
$2
'"
shift
2
;;
-region
)
[
"$#"
-ge
2
]
||
usag
e
"'
$1
' option requires an argument"
[
"$#"
-ge
2
]
||
di
e
"'
$1
' option requires an argument"
regionName
=
$2
shift
2
;;
...
...
@@ -127,7 +142,7 @@ do
break
# Stop here, treat this and balance as paraview options
;;
*
)
usag
e
"unknown option/argument: '
$1
'"
di
e
"unknown option/argument: '
$1
'"
;;
esac
done
...
...
@@ -198,8 +213,8 @@ all)
touch
"
$caseName
.blockMesh"
echo
"Created '
$caseName
.blockMesh'"
1>&2
fi
touch
"
$caseName
.
$extension
"
echo
"Created '
$caseName
.
$extension
'"
1>&2
touch
"
$caseName
.
$extension
"
"
$caseName
.foam"
echo
"Created '
$caseName
.
$extension
'
'
$caseName
.foam'
"
1>&2
# Discover probable regions
for
region
in
constant/
*
do
...
...
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