pressureGradientExplicitSource: use timePath() to correctly set the path of the "uniform" sub-directory when restarting

This commit is contained in:
Henry
2013-07-15 22:35:11 +01:00
parent b38086352c
commit f6f9510eff

View File

@ -115,7 +115,7 @@ Foam::fv::pressureGradientExplicitSource::pressureGradientExplicitSource
// Read the initial pressure gradient from file if it exists
IFstream propsFile
(
mesh_.time().timeName()/"uniform"/(name_ + "Properties")
mesh_.time().timePath()/"uniform"/(name_ + "Properties")
);
if (propsFile.good())