ENH: Deprecated TimeFunction1 usage in favour of Function1

This commit is contained in:
Andrew Heather
2021-11-18 14:26:50 +00:00
committed by Mark Olesen
parent 925a2e724b
commit 9194cd5203
32 changed files with 237 additions and 225 deletions

View File

@ -56,11 +56,6 @@ void Foam::Function1Types::Polynomial<Type>::checkCoefficients()
<< "Polynomial " << this->name() << " cannot be integrated"
<< endl;
}
if (this->isTime())
{
convertTimeBase(this->time());
}
}

View File

@ -50,11 +50,6 @@ Foam::Function1Types::Sine<Type>::Sine
{
frequency_ = Function1<scalar>::New("frequency", dict);
}
if (this->isTime())
{
convertTimeBase(this->time());
}
}

View File

@ -134,11 +134,6 @@ void Foam::Function1Types::TableBase<Type>::initialise()
prevValue = currValue;
++i;
}
if (this->isTime())
{
convertTimeBase(this->time());
}
}

View File

@ -34,11 +34,6 @@ void Foam::Function1Types::ramp::read(const dictionary& coeffs)
{
start_ = coeffs.getOrDefault<scalar>("start", 0);
coeffs.readEntry("duration", duration_);
if (isTime())
{
convertTimeBase(time());
}
}