Make constant directories
This commit is contained in:
parent
80b603ad1a
commit
bae18c4d32
1 changed files with 14 additions and 11 deletions
|
@ -45,7 +45,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
|
||||
|
||||
IOdictionary meshDict
|
||||
(
|
||||
IOobject
|
||||
|
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
|||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
IOdictionary decomposeParDict
|
||||
(
|
||||
IOobject
|
||||
|
@ -69,12 +69,12 @@ int main(int argc, char *argv[])
|
|||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
const label nProcessors
|
||||
(
|
||||
readLabel(decomposeParDict.lookup("numberOfSubdomains"))
|
||||
);
|
||||
|
||||
|
||||
for(label procI=0;procI<nProcessors;++procI)
|
||||
{
|
||||
fileName file("processor");
|
||||
|
@ -82,17 +82,20 @@ int main(int argc, char *argv[])
|
|||
ss << procI;
|
||||
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
|
||||
mkDir(runTime.path()/file/"0");
|
||||
// generate 0 directories
|
||||
mkDir(runTime.path()/file/"0");
|
||||
}
|
||||
|
||||
|
||||
Info << "End\n" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
Reference in a new issue