mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Function1 - updated time-based Function1 usage
This commit is contained in:
committed by
Mark Olesen
parent
f6ee1811e7
commit
ba45fb2cba
@ -77,7 +77,7 @@ Foam::Function1Types::Sine<Type>::Sine(const Sine<Type>& rhs)
|
||||
template<class Type>
|
||||
void Foam::Function1Types::Sine<Type>::userTimeToTime(const Time& t)
|
||||
{
|
||||
t0_ = t.timeToUserTime(t0_);
|
||||
t0_ = t.userTimeToTime(t0_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -61,8 +61,8 @@ void Foam::Function1Types::ramp::writeEntries(Ostream& os) const
|
||||
|
||||
void Foam::Function1Types::ramp::userTimeToTime(const Time& t)
|
||||
{
|
||||
start_ = t.timeToUserTime(start_);
|
||||
duration_ = t.timeToUserTime(duration_);
|
||||
start_ = t.userTimeToTime(start_);
|
||||
duration_ = t.userTimeToTime(duration_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user