view assertScalar.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 6490b5f950fb
children
line wrap: on
line source

function assertScalar(obj)
    if ~isscalar(obj)
        error('sbplib:assertScalar:notScalar', '"%s" must be scalar, found size "%s"', inputname(1), toString(size(obj)));
    end
end