ENH: Time: use constant(), time() instead of hardcoded strings

This commit is contained in:
mattijs
2012-12-06 08:24:54 +00:00
parent c0e14130dc
commit e8ff31f9e8
17 changed files with 65 additions and 44 deletions

View File

@ -9,7 +9,7 @@
}
else if
(
runTime.timeName() != "constant"
runTime.timeName() != runTime.constant()
&& runTime.timeName() != "0"
)
{

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -575,7 +575,7 @@ double* Foam::vtkPV3Foam::findTimes(int& nTimeSteps)
// skip "constant" time whenever possible
if (timeI == 0 && nTimes > 1)
{
if (timeLst[timeI].name() == "constant")
if (timeLst[timeI].name() == runTime.constant())
{
++timeI;
--nTimes;