From 76a24eb9ce91116bb56a8b3b3c08f21c3e24ecf1 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 14 Nov 2012 21:07:24 +0000 Subject: [PATCH] [1D] Create initial guess before showSolution() --- interfaces/python/Cantera/OneD/onedim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces/python/Cantera/OneD/onedim.py b/interfaces/python/Cantera/OneD/onedim.py index 155f4b31b..51d03a438 100644 --- a/interfaces/python/Cantera/OneD/onedim.py +++ b/interfaces/python/Cantera/OneD/onedim.py @@ -546,6 +546,8 @@ class Stack: >>> s.showSolution() >>> s.showSolution('soln.txt') """ + if not self._initialized: + self.init() _cantera.sim1D_showSolution(self._hndl, fname) def setTimeStep(self, stepsize, nsteps):