From 81a651d943ff84ddc1a950a5cd737962fa691427 Mon Sep 17 00:00:00 2001
From: andy <a.heather@opencfd.co.uk>
Date: Wed, 13 Oct 2010 17:58:09 +0100
Subject: [PATCH] ENH: Updated chemkinToFoam utility to make use of new dict
 output

---
 .../thermophysical/chemkinToFoam/chemkinToFoam.C          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/applications/utilities/thermophysical/chemkinToFoam/chemkinToFoam.C b/applications/utilities/thermophysical/chemkinToFoam/chemkinToFoam.C
index 1bf676cd544..1f67b523362 100644
--- a/applications/utilities/thermophysical/chemkinToFoam/chemkinToFoam.C
+++ b/applications/utilities/thermophysical/chemkinToFoam/chemkinToFoam.C
@@ -48,11 +48,13 @@ int main(int argc, char *argv[])
 
     OFstream reactionsFile(args[3]);
     reactionsFile
-        << "species" << cr.species() << token::END_STATEMENT << nl << nl
-        << "reactions" << cr.reactions() << token::END_STATEMENT << endl;
+        << "species" << cr.species() << token::END_STATEMENT << nl << nl;
+
+    cr.reactions().write(reactionsFile);
+
 
     OFstream thermoFile(args[4]);
-    thermoFile<< cr.speciesThermo() << endl;
+    cr.speciesThermo().write(thermoFile);
 
     Info<< "End\n" << endl;
 
-- 
GitLab