Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
df87fed4
Commit
df87fed4
authored
Sep 26, 2017
by
Mark Olesen
Browse files
STYLE: include .foam file as well in paraFoam -touch-all
parent
b2e05dc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/paraFoam
View file @
df87fed4
...
...
@@ -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
...
...
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