Function1/2: Updated the writing of Function1/2 entries within Function1/2s
Resolves bug-report https://bugs.openfoam.org/view.php?id=3613
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2017-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -86,9 +86,9 @@ Foam::Function1s::Scale<Type>::~Scale()
|
||||
template<class Type>
|
||||
void Foam::Function1s::Scale<Type>::write(Ostream& os) const
|
||||
{
|
||||
scale_->write(os);
|
||||
xScale_->write(os);
|
||||
value_->write(os);
|
||||
writeEntry(os, scale_());
|
||||
writeEntry(os, xScale_());
|
||||
writeEntry(os, value_());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -80,10 +80,10 @@ Foam::Function1s::Sine<Type>::~Sine()
|
||||
template<class Type>
|
||||
void Foam::Function1s::Sine<Type>::write(Ostream& os) const
|
||||
{
|
||||
amplitude_->write(os);
|
||||
writeEntry(os, amplitude_());
|
||||
writeEntry(os, "frequency", frequency_);
|
||||
writeEntry(os, "start", start_);
|
||||
level_->write(os);
|
||||
writeEntry(os, level_());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -82,10 +82,10 @@ Foam::Function1s::Square<Type>::~Square()
|
||||
template<class Type>
|
||||
void Foam::Function1s::Square<Type>::write(Ostream& os) const
|
||||
{
|
||||
amplitude_->write(os);
|
||||
writeEntry(os, amplitude_());
|
||||
writeEntry(os, "frequency", frequency_);
|
||||
writeEntry(os, "start", start_);
|
||||
level_->write(os);
|
||||
writeEntry(os, level_());
|
||||
writeEntry(os, "markSpace", markSpace_);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -70,7 +70,7 @@ Foam::Function1s::reverseRamp::~reverseRamp()
|
||||
void Foam::Function1s::reverseRamp::write(Ostream& os) const
|
||||
{
|
||||
Ramp<reverseRamp>::write(os);
|
||||
ramp_->write(os);
|
||||
writeEntry(os, ramp_());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2020-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -87,10 +87,10 @@ Foam::Function2s::Scale<Type>::~Scale()
|
||||
template<class Type>
|
||||
void Foam::Function2s::Scale<Type>::write(Ostream& os) const
|
||||
{
|
||||
scale_->write(os);
|
||||
xScale_->write(os);
|
||||
yScale_->write(os);
|
||||
value_->write(os);
|
||||
writeEntry(os, scale_());
|
||||
writeEntry(os, xScale_());
|
||||
writeEntry(os, yScale_());
|
||||
writeEntry(os, value_());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user