mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fvOption: Rationalize read to support re-reading
writeData is not yet completely consistent with read.
This commit is contained in:
@ -150,14 +150,14 @@ void Foam::fv::fixedTemperatureConstraint::setValue
|
||||
|
||||
void Foam::fv::fixedTemperatureConstraint::writeData(Ostream& os) const
|
||||
{
|
||||
os << indent << name_ << endl;
|
||||
cellSetOption::writeData(os);
|
||||
dict_.write(os);
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::fixedTemperatureConstraint::read(const dictionary& dict)
|
||||
{
|
||||
if (option::read(dict))
|
||||
if (cellSetOption::read(dict))
|
||||
{
|
||||
if (coeffs_.found(Tuniform_->name()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user