From d1a4a8e7c1b30d02cce669b88d14ad054492798f Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 14 Jul 2009 00:17:52 +0000 Subject: [PATCH] Further change to make sure it works on linux. - sheesh There are problems with the tolerances and internal convergence requirements within the code. --- Cantera/python/examples/reactors/surf_pfr_sim/surf_pfr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cantera/python/examples/reactors/surf_pfr_sim/surf_pfr.py b/Cantera/python/examples/reactors/surf_pfr_sim/surf_pfr.py index a109b095d..9b406ece9 100644 --- a/Cantera/python/examples/reactors/surf_pfr_sim/surf_pfr.py +++ b/Cantera/python/examples/reactors/surf_pfr_sim/surf_pfr.py @@ -119,7 +119,7 @@ for n in range(NReactors): sim = ReactorNet([upstream, r, downstream]) # set relative and absolute tolerances on the simulation - sim.setTolerances(rtol = 1.0e-3, atol = 1.0e-11) + sim.setTolerances(rtol = 1.0e-4, atol = 1.0e-11) time = 0 while 1 > 0: @@ -142,7 +142,7 @@ for n in range(NReactors): for ks in range(nsurf): ratio = sdot[ks]/(cdot[ks] + ddot[ks]) if ratio < 0.0: ratio = -ratio - if ratio > 1.0e-11 or time < 10*dt: + if ratio > 1.0e-9 or time < 10*dt: alldone = 0 if alldone: break