ENH: Avoid constant/polyMesh/blockMeshDict (issue #309)

- relocate to system/blockMeshDict, which avoids it being cleaned out
  accidentally
This commit is contained in:
Mark Olesen
2016-11-20 16:50:47 +01:00
parent 8ba4e3c370
commit f3cc16e42c
21 changed files with 35 additions and 23 deletions

View File

@ -1,12 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
# Restore default dictionaries
cp system/decomposeParDict-2 system/decomposeParDict
cp system/controlDict-startTime system/controlDict
cleanCase
rm -f constant/polyMesh/boundary
rm -f constant/polyMesh/procAddressing
# -----------------------------------------------------------------------------

View File

@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Remove 0.orig/ copy and post-processing directories
\rm -rf 0 postProcessing
cleanCase
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -29,5 +29,4 @@ runParallel -s parallel $application
#- Reconstruct all times
runParallel -s 1 redistributePar -reconstruct
# ----------------------------------------------------------------- end-of-file
# -----------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant/polyMesh";
location "system";
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //