ENH: Use IStringStream to read reaction

This commit is contained in:
andy
2010-10-14 10:50:54 +01:00
parent b4e91aa468
commit 6a29417641

View File

@ -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" << "Cannot continue reading reaction data from stream"
<< exit(FatalIOError); << exit(FatalIOError);
} }
@ -254,7 +254,7 @@ Foam::Reaction<ReactionThermo>::Reaction
ReactionThermo(*thermoDatabase[species[0]]), ReactionThermo(*thermoDatabase[species[0]]),
species_(species) species_(species)
{ {
setLRhs(dict.lookup("reaction")); setLRhs(IStringStream(dict.lookup("reaction"))());
setThermo(thermoDatabase); setThermo(thermoDatabase);
} }