foamCloneCase: do not copy Uf files
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
# \\ / O peration | Website: https://openfoam.org
|
||||||
# \\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -76,9 +76,8 @@ cpIfPresent() {
|
|||||||
[ "$_start_time" ] || return 0
|
[ "$_start_time" ] || return 0
|
||||||
|
|
||||||
# If src time directory is copied to a different time,
|
# If src time directory is copied to a different time,
|
||||||
# delete the uniform subdirectory and phi file
|
# delete the uniform subdirectory and phi, Uf files
|
||||||
rm -f "$_tgt/phi"
|
rm -rf "$_tgt/phi" "$_tgt/Uf" "$_tgt/uniform"
|
||||||
rm -rf "$_tgt/uniform"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isCaseValid() {
|
isCaseValid() {
|
||||||
@ -258,7 +257,8 @@ time_dir="$(foamListTimes -withZero $proc_opt -case "$srcDir" | $time_opt)"
|
|||||||
|
|
||||||
# Copy scripts if required
|
# Copy scripts if required
|
||||||
[ "$no_scripts" ] || \
|
[ "$no_scripts" ] || \
|
||||||
scripts="$(find "$srcDir" -maxdepth 1 -type f -exec file {} \; | \
|
scripts="$(find "$srcDir" -maxdepth 1 ! -name "*~" -type f \
|
||||||
|
-exec file {} \; | \
|
||||||
grep "shell script" | \
|
grep "shell script" | \
|
||||||
cut -d: -f1)"
|
cut -d: -f1)"
|
||||||
[ "$scripts" ] && echo "Copying scripts from $srcDir to $tgtDir:" && \
|
[ "$scripts" ] && echo "Copying scripts from $srcDir to $tgtDir:" && \
|
||||||
|
|||||||
Reference in New Issue
Block a user