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
6b9534c9
Commit
6b9534c9
authored
15 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
foamCopySettings - skip sampled directories and Ensight output directories
parent
10798d69
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/foamCopySettings
+13
-9
13 additions, 9 deletions
bin/foamCopySettings
with
13 additions
and
9 deletions
bin/foamCopySettings
+
13
−
9
View file @
6b9534c9
#!/bin/sh
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
-
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C)
1991
-2009 OpenCFD Ltd.
# \\ / A nd | Copyright (C)
2008
-2009 OpenCFD Ltd.
# \\/ M anipulation |
#-------------------------------------------------------------------------------
# License
...
...
@@ -36,7 +36,7 @@
# Note
# The foamCopySettings.rc (found with the ~OpenFOAM expansion) can be used
# to add any custom rsync options.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
-
Script
=
${
0
##*/
}
if
[
"
$1
"
=
"-h"
-o
"
$1
"
=
"-help"
-o
"$#"
-ne
2
]
then
...
...
@@ -48,8 +48,8 @@ Usage: $Script srcDir dstDir
- requires rsync
Note
The
$Script
.rc (found
with
the ~OpenFOAM expansion
) can be used
to add any custom rsync options.
The
$Script
.rc (found
via
the ~OpenFOAM expansion
- see foamEtcFile)
can be used
to add any custom rsync options.
USAGE
exit
1
...
...
@@ -78,7 +78,6 @@ done
# avoid processor directories here too to make for cleaner output
fileList
=
$(
find
-H
$srcDir
-mindepth
1
-maxdepth
1
-not
-name
"processor*"
)
# avoid polyMesh and processor* directories
rsync
=
"rsync --exclude polyMesh --exclude processor*"
...
...
@@ -108,15 +107,20 @@ do
# skip numerical (results) directories (except 0)
# and things that look like log files or queuing system output
case
"
$name
"
in
[
1-9]
|
[
0-9]?
*
|
log
|
*
.log
|
foam.[eo][1-9]
*
)
(
[
1-9]
|
[
0-9]?
*
|
log
|
*
.log
|
foam.[eo][1-9]
*
)
echo
"
$i
[skipped]"
continue
;;
# skip things that look sampled directories and converted data
(
probes
|
sets
|
surfaces
|
En[Ss]ight
)
echo
"
$i
[skipped]"
continue
;;
*
)
(
*
)
echo
"
$i
->
$dstDir
/
$name
"
$rsync
-a
$i
$dstDir
;;
esac
done
# --------------------------------------------------------------- end-of-file
# ---------------------------------------------------------------
---
end-of-file
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