mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
subCycleTime: added access to cycle index
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user