FEATURE: Make sure constant directory is available before writing into it. Author: Hrvoje Jasak. Merge: Dominik Christ.
This commit is contained in:
commit
cc4804428b
2 changed files with 30 additions and 27 deletions
|
@ -83,13 +83,16 @@ int main(int argc, char *argv[])
|
|||
file += ss.str();
|
||||
Info << "Creating " << file << endl;
|
||||
|
||||
//- create a directory for processor data
|
||||
// create a directory for processor data
|
||||
mkDir(runTime.path()/file);
|
||||
|
||||
//- copy the contents of the const directory into processor*
|
||||
// generate constant directories
|
||||
mkDir(runTime.path()/"constant");
|
||||
|
||||
// copy the contents of the const directory into processor*
|
||||
cp(runTime.path()/"constant", runTime.path()/file);
|
||||
|
||||
//- generate 0 directories for
|
||||
// generate 0 directories
|
||||
mkDir(runTime.path()/file/"0");
|
||||
}
|
||||
|
||||
|
|
|
@ -8,32 +8,32 @@ cd cartesianMesh
|
|||
|
||||
cd asmoOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd bunnyOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd intakePortOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd sawOctree
|
||||
cleanCase
|
||||
rm -rf processor* > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf processor* > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd sBendOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd ..
|
||||
|
@ -42,8 +42,8 @@ cd cartesian2DMesh
|
|||
|
||||
cd hatOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd ..
|
||||
|
@ -52,14 +52,14 @@ cd tetMesh
|
|||
|
||||
cd cutCubeOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd socketOctree
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
rm log.*
|
||||
\rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
\rm -f log.*
|
||||
cd ..
|
||||
|
||||
cd ..
|
||||
|
|
Reference in a new issue