subCycleTime: added access to cycle index

This commit is contained in:
Henry
2014-04-27 23:06:39 +01:00
committed by Andrew Heather
parent 187f928ff6
commit de8b6c2030

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,6 +75,18 @@ public:
//- End the sub-cycling and reset the time-state //- End the sub-cycling and reset the time-state
void endSubCycle(); void endSubCycle();
//- Return the total number of sub-cycles
label nSubCycles() const
{
return nSubCycles_;
}
//- Return the current sub-cycle index
label index() const
{
return subCycleIndex_;
}
// Member operators // Member operators