From 6a2941764116e7c3a76d49a03f7fae2521f16d5b Mon Sep 17 00:00:00 2001
From: andy <a.heather@opencfd.co.uk>
Date: Thu, 14 Oct 2010 10:50:54 +0100
Subject: [PATCH] ENH: Use IStringStream to read reaction

---
 .../specie/reaction/Reactions/Reaction/Reaction.C             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.C b/src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.C
index d721f96e4fb..cad5fafc900 100644
--- a/src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.C
+++ b/src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.C
@@ -221,7 +221,7 @@ void Foam::Reaction<ReactionThermo>::setLRhs(Istream& is)
         }
     }
 
-    FatalIOErrorIn("Reaction<ReactionThermo>::lrhs(Istream& is)", is)
+    FatalIOErrorIn("Reaction<ReactionThermo>::setLRhs(Istream& is)", is)
         << "Cannot continue reading reaction data from stream"
         << exit(FatalIOError);
 }
@@ -254,7 +254,7 @@ Foam::Reaction<ReactionThermo>::Reaction
     ReactionThermo(*thermoDatabase[species[0]]),
     species_(species)
 {
-    setLRhs(dict.lookup("reaction"));
+    setLRhs(IStringStream(dict.lookup("reaction"))());
     setThermo(thermoDatabase);
 }
 
-- 
GitLab