view +scheme/error1d.m @ 638:17dffd56f2fe feature/d1_staggered

Bug fix and improved comments in D1Staggered wrapper class.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 10 Nov 2017 15:57:21 -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