mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Matlab/Examples] Don't call non-existent methods
The current simulation time is a property of the reactor network, not the individual reactors.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user