Added access to write frequency. Tommaso Lucchini

This commit is contained in:
Hrvoje Jasak 2011-07-07 14:12:46 +01:00
parent 652f65891a
commit 064ba92e50
2 changed files with 9 additions and 0 deletions

View file

@ -603,6 +603,12 @@ void Foam::Time::setDeltaT(const scalar deltaT)
} }
void Foam::Time::setWriteInterval(const scalar& deltaTheta)
{
writeInterval_ = deltaTheta;
}
Foam::TimeState Foam::Time::subCycle(const label nSubCycles) Foam::TimeState Foam::Time::subCycle(const label nSubCycles)
{ {
subCycling_ = true; subCycling_ = true;

View file

@ -437,6 +437,9 @@ public:
//- Reset time step //- Reset time step
virtual void setDeltaT(const scalar); virtual void setDeltaT(const scalar);
//- Set write interval
void setWriteInterval(const scalar& deltaTheta);
//- Set time to sub-cycle for the given number of steps //- Set time to sub-cycle for the given number of steps
virtual TimeState subCycle(const label nSubCycles); virtual TimeState subCycle(const label nSubCycles);