Skip to content
Snippets Groups Projects
Commit 6a294176 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Use IStringStream to read reaction

parent b4e91aa4
No related merge requests found
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment