Skip to content
Snippets Groups Projects
Commit 4ad73873 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: use dictionary writeEntry for output

parent 3c5fffcd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment