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