cantera/interfaces/matlab/toolbox/@ReactorNet/setMaxTimeStep.m
Ray Speth 2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00

12 lines
537 B
Matlab

function setMaxTimeStep(r, maxstep)
% SETMAXTIMESTEP - Set the maximum time step.
%
% The integrator chooses a step size based on the desired error
% tolerances and the rate at which the solution is changing. In
% some cases, the solution changes very slowly at first, then very
% rapidly (ignition problems). In such cases, the integrator may
% choose a timestep that is too large, which leads to numerical
% problems later. Use this method to set an upper bound on the
% timestep.
%
reactornetmethods(6, reactornet_hndl(r), maxstep);