mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Use IStringStream to read reaction
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user