Mercurial > repos > public > sbplib
view +scheme/error1d.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 | ed6a704b028d |
children |
line wrap: on
line source
function e = error1d(discr, v1, v2) h = discr.h; e = sqrt(h*sum((v1-v2).^2)); end