The Sim1D.restore method fails for flames that use the ImpingingJet class.
Steps to reproduce
Run samples/python/onedim/stagnation_flame.py
Run the following commands:
import cantera as ct
gas = ct.Solution('h2o2.yaml')
flame = ct.ImpingingJet(gas)
flame.restore('stagnation_flame_data/stagnation_flame.h5', 'mdot-0')
Behavior
File build/python/cantera/_onedim.pyx:1665, in cantera._onedim.Sim1D.restore()
CanteraError:
*******************************************************************************
CanteraError thrown by SolutionArray::setLoc:
Unable to set location in empty SolutionArray.
*******************************************************************************
Problem description
The
Sim1D.restore
method fails for flames that use theImpingingJet
class.Steps to reproduce
samples/python/onedim/stagnation_flame.py
Behavior
System information
main
branch at 4b30fa74b