db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
29 lines
674 B
C
29 lines
674 B
C
OFstream* pathFilePtr = NULL;
|
|
|
|
if(Pstream::master())
|
|
{
|
|
mkDir
|
|
(
|
|
args.rootPath()
|
|
/args.globalCaseName()
|
|
/"path"
|
|
/runTime.timeName()
|
|
);
|
|
|
|
pathFilePtr =
|
|
new OFstream
|
|
(
|
|
args.rootPath()
|
|
/args.globalCaseName()
|
|
/"path"
|
|
/runTime.timeName()
|
|
/"path"
|
|
);
|
|
|
|
*pathFilePtr << "Time" << tab;
|
|
|
|
*pathFilePtr << "Xb" << tab << "Yb" << tab << "Zb" << tab
|
|
<< "Ub" << tab << "ab" << endl;
|
|
}
|
|
|
|
OFstream& pathFile = *pathFilePtr;
|