Create graphs in a sub-directory

This commit is contained in:
Henry
2011-04-28 21:13:08 +01:00
parent ffb0a2df21
commit 5222405567
6 changed files with 52 additions and 18 deletions

View File

@ -16,6 +16,9 @@ void writeCellGraph
const word& graphFormat
)
{
fileName path(vsf.time().path()/"graphs"/vsf.time().timeName());
mkDir(path);
graph
(
vsf.name(),
@ -23,7 +26,7 @@ void writeCellGraph
vsf.name(),
vsf.mesh().C().internalField().component(vector::X),
vsf.internalField()
).write(vsf.time().timePath()/vsf.name(), graphFormat);
).write(path/vsf.name(), graphFormat);
}