view +parametrization/equal_step_size.m @ 917:878652b22157 feature/timesteppers

Make time.rk.rungekutta return stage approximations and stage rates in addition to the solution after one time step.
author Martin Almquist <malmquist@stanford.edu>
date Mon, 26 Nov 2018 16:12:27 -0800
parents 3a3cf386bb7e
children
line wrap: on
line source

% Calculates M so that the stepsize m/M is as close to n/M as possible
function M = equal_step_size(n,N,m)
    M = round((m*(N-1)+n)/n);
end