Commit 4ad73873 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: use dictionary writeEntry for output

parent 3c5fffcd
......@@ -409,8 +409,7 @@ void Foam::porosityModels::powerLawLopesdaCosta::correct
bool Foam::porosityModels::powerLawLopesdaCosta::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
return true;
}
......
......@@ -288,8 +288,7 @@ void Foam::porosityModels::DarcyForchheimer::correct
bool Foam::porosityModels::DarcyForchheimer::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
return true;
}
......
......@@ -248,8 +248,7 @@ void Foam::porosityModels::fixedCoeff::correct
bool Foam::porosityModels::fixedCoeff::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
return true;
}
......
......@@ -149,8 +149,7 @@ void Foam::porosityModels::powerLaw::correct
bool Foam::porosityModels::powerLaw::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
return true;
}
......
......@@ -154,8 +154,7 @@ void Foam::porosityModels::solidification::correct
bool Foam::porosityModels::solidification::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
return true;
}
......
......@@ -113,8 +113,7 @@ void Foam::fv::velocityDampingConstraint::constrain
void Foam::fv::velocityDampingConstraint::writeData(Ostream& os) const
{
os << indent << name_ << endl;
dict_.write(os);
dict_.writeEntry(name_, os);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment