BUG: invalid expand() on const fileName&

This commit is contained in:
Mark Olesen
2010-12-17 16:11:54 +01:00
parent 5ddca2ee01
commit d5edc848e4

View File

@ -37,8 +37,20 @@ Foam::foamChemistryReader<ThermoType>::foamChemistryReader
)
:
chemistryReader<ThermoType>(),
chemDict_(IFstream(reactionsFileName.expand())),
thermoDict_(IFstream(thermoFileName.expand())),
chemDict_
(
IFstream
(
fileName(reactionsFileName).expand()
)()
),
thermoDict_
(
IFstream
(
fileName(thermoFileName).expand()
)()
),
speciesThermo_(thermoDict_),
speciesTable_(chemDict_.lookup("species")),
reactions_(speciesTable_, speciesThermo_, chemDict_)