ENH: Updated for setting of old time values

This commit is contained in:
Andrew Heather
2017-04-04 12:50:42 +01:00
parent c13d59fa51
commit 37b0d85dc4

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -58,7 +58,7 @@ template<class Type>
template<class GeoField>
scalar backwardDdtScheme<Type>::deltaT0_(const GeoField& vf) const
{
if (vf.nOldTimes() < 2)
if (mesh().time().timeIndex() < 2)
{
return GREAT;
}