mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated for setting of old time values
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user