From 700ebd0abf286b9295ac6e2a1234702c049c4e14 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 16 Jul 2013 22:10:01 +0000 Subject: [PATCH] [Matlab/Examples] Don't call non-existent methods The current simulation time is a property of the reactor network, not the individual reactors. --- samples/matlab/reactor1.m | 2 +- samples/matlab/reactor2.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/matlab/reactor1.m b/samples/matlab/reactor1.m index a15af66c6..76e807d7c 100644 --- a/samples/matlab/reactor1.m +++ b/samples/matlab/reactor1.m @@ -53,7 +53,7 @@ t0 = cputime; for n = 1:100 t = t + dt; advance(network, t); - tim(n) = time(r); + tim(n) = time(network); temp(n) = temperature(r); x(n,1:3) = moleFraction(gas,{'OH','H','H2'}); end diff --git a/samples/matlab/reactor2.m b/samples/matlab/reactor2.m index 2f52e61de..e0fa9cc68 100644 --- a/samples/matlab/reactor2.m +++ b/samples/matlab/reactor2.m @@ -31,7 +31,7 @@ t0 = cputime; for n = 1:100 t = t + dt; advance(network, t); - tim(n) = time(r); + tim(n) = time(network); temp(n) = temperature(r); x(n,1:3) = moleFraction(gas,{'OH','H','H2'}); end