From be5a9ad73781bee6b2cc4fc21c94428d4e96cbf4 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Mon, 18 Jul 2011 17:35:52 +0100
Subject: [PATCH] BUG: correction to commit c8a5fe5

---
 .../specie/equationOfState/icoPolynomial/icoPolynomial.C      | 4 ++--
 .../specie/equationOfState/incompressible/incompressible.C    | 4 ++--
 src/thermophysicalModels/specie/specie/specie.C               | 4 ++--
 src/thermophysicalModels/specie/thermo/eConst/eConstThermo.C  | 4 ++--
 src/thermophysicalModels/specie/thermo/hConst/hConstThermo.C  | 4 ++--
 .../specie/thermo/hPolynomial/hPolynomialThermo.C             | 4 ++--
 src/thermophysicalModels/specie/thermo/janaf/janafThermo.C    | 4 ++--
 .../specie/transport/const/constTransport.C                   | 4 ++--
 .../specie/transport/polynomial/polynomialTransport.C         | 4 ++--
 .../specie/transport/sutherland/sutherlandTransport.C         | 4 ++--
 10 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.C b/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.C
index 36ac0028454..c87faab832c 100644
--- a/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.C
+++ b/src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.C
@@ -66,14 +66,14 @@ void icoPolynomial<PolySize>::write(Ostream& os) const
 {
     specie::write(os);
 
-    dictionaryEntry dict("equationOfState");
+    dictionary dict("equationOfState");
     dict.add
     (
         word("rhoCoeffs<" + Foam::name(PolySize) + '>'),
         rhoCoeffs_/this->W()
     );
 
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/equationOfState/incompressible/incompressible.C b/src/thermophysicalModels/specie/equationOfState/incompressible/incompressible.C
index 8f658e92c12..c9a0b81989b 100644
--- a/src/thermophysicalModels/specie/equationOfState/incompressible/incompressible.C
+++ b/src/thermophysicalModels/specie/equationOfState/incompressible/incompressible.C
@@ -50,10 +50,10 @@ void Foam::incompressible::write(Ostream& os) const
 {
     specie::write(os);
 
-    dictionaryEntry dict("equationOfState");
+    dictionary dict("equationOfState");
     dict.add("rho", rho_);
 
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/specie/specie.C b/src/thermophysicalModels/specie/specie/specie.C
index e361c21bd7f..6ae423bf2e9 100644
--- a/src/thermophysicalModels/specie/specie/specie.C
+++ b/src/thermophysicalModels/specie/specie/specie.C
@@ -63,10 +63,10 @@ Foam::specie::specie(const dictionary& dict)
 
 void Foam::specie::write(Ostream& os) const
 {
-    dictionaryEntry dict("specie");
+    dictionary dict("specie");
     dict.add("nMoles", nMoles_);
     dict.add("molWeight", molWeight_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/thermo/eConst/eConstThermo.C b/src/thermophysicalModels/specie/thermo/eConst/eConstThermo.C
index 6f154ce1817..cd36e3d6aab 100644
--- a/src/thermophysicalModels/specie/thermo/eConst/eConstThermo.C
+++ b/src/thermophysicalModels/specie/thermo/eConst/eConstThermo.C
@@ -55,10 +55,10 @@ void Foam::eConstThermo<EquationOfState>::write(Ostream& os) const
 {
     EquationOfState::write(os);
 
-    dictionaryEntry dict("thermodynamics");
+    dictionary dict("thermodynamics");
     dict.add("Cv", Cv_);
     dict.add("Hf", Hf_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/thermo/hConst/hConstThermo.C b/src/thermophysicalModels/specie/thermo/hConst/hConstThermo.C
index 857d53eed65..ca3ee834a2f 100644
--- a/src/thermophysicalModels/specie/thermo/hConst/hConstThermo.C
+++ b/src/thermophysicalModels/specie/thermo/hConst/hConstThermo.C
@@ -55,10 +55,10 @@ void Foam::hConstThermo<equationOfState>::write(Ostream& os) const
 {
     equationOfState::write(os);
 
-    dictionaryEntry dict("thermodynamics");
+    dictionary dict("thermodynamics");
     dict.add("Cp", Cp_);
     dict.add("Hf", Hf_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C b/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C
index 319c7af5fb5..7de0696cf5d 100644
--- a/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C
+++ b/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C
@@ -100,7 +100,7 @@ void Foam::hPolynomialThermo<EquationOfState, PolySize>::write
 {
     EquationOfState::write(os);
 
-    dictionaryEntry dict("thermodynamics");
+    dictionary dict("thermodynamics");
     dict.add("Hf", Hf_);
     dict.add("Sf", Sf_);
     dict.add
@@ -108,7 +108,7 @@ void Foam::hPolynomialThermo<EquationOfState, PolySize>::write
         word("CpCoeffs<" + Foam::name(PolySize) + '>'),
         CpCoeffs_/this->W()
     );
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C b/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C
index aa744f2532b..f254236c476 100644
--- a/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C
+++ b/src/thermophysicalModels/specie/thermo/janaf/janafThermo.C
@@ -102,13 +102,13 @@ void Foam::janafThermo<EquationOfState>::write(Ostream& os) const
 {
     EquationOfState::write(os);
 
-    dictionaryEntry dict("thermodynamics");
+    dictionary dict("thermodynamics");
     dict.add("Tlow", Tlow_);
     dict.add("Thigh", Thigh_);
     dict.add("Tcommon", Tcommon_);
     dict.add("highCpCoeffs", highCpCoeffs_);
     dict.add("lowCpCoeffs", lowCpCoeffs_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 }
 
 
diff --git a/src/thermophysicalModels/specie/transport/const/constTransport.C b/src/thermophysicalModels/specie/transport/const/constTransport.C
index 373404d04b7..5ec86a7d3b2 100644
--- a/src/thermophysicalModels/specie/transport/const/constTransport.C
+++ b/src/thermophysicalModels/specie/transport/const/constTransport.C
@@ -58,10 +58,10 @@ void Foam::constTransport<Thermo>::constTransport::write(Ostream& os) const
 
     Thermo::write(os);
 
-    dictionaryEntry dict("transport");
+    dictionary dict("transport");
     dict.add("mu", mu_);
     dict.add("Pr", 1.0/rPr_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 
     os  << decrIndent << token::END_BLOCK << nl;
 }
diff --git a/src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.C b/src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.C
index 98db9a794c8..b67a72d8908 100644
--- a/src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.C
+++ b/src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.C
@@ -77,7 +77,7 @@ void Foam::polynomialTransport<Thermo, PolySize>::write(Ostream& os) const
 
     Thermo::write(os);
 
-    dictionaryEntry dict("transport");
+    dictionary dict("transport");
     dict.add
     (
         word("muCoeffs<" + Foam::name(PolySize) + '>'),
@@ -88,7 +88,7 @@ void Foam::polynomialTransport<Thermo, PolySize>::write(Ostream& os) const
         word("kappaCoeffs<" + Foam::name(PolySize) + '>'),
         kappaCoeffs_/this->W()
     );
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 
     os  << decrIndent << token::END_BLOCK << nl;
 }
diff --git a/src/thermophysicalModels/specie/transport/sutherland/sutherlandTransport.C b/src/thermophysicalModels/specie/transport/sutherland/sutherlandTransport.C
index bb63dbadac3..08b270acead 100644
--- a/src/thermophysicalModels/specie/transport/sutherland/sutherlandTransport.C
+++ b/src/thermophysicalModels/specie/transport/sutherland/sutherlandTransport.C
@@ -58,10 +58,10 @@ void Foam::sutherlandTransport<Thermo>::write(Ostream& os) const
 
     Thermo::write(os);
 
-    dictionaryEnrtry dict("transport");
+    dictionary dict("transport");
     dict.add("As", As_);
     dict.add("Ts", Ts_);
-    os  << dict;
+    os  << dict.dictName() << nl << dict;
 
     os  << decrIndent << token::END_BLOCK << nl;
 }
-- 
GitLab