Mercurial > repos > public > sbplib
view +scheme/error2d.m @ 25:791decafe6e4
Made calculateSolution save the discretization instead of a handle to contructor.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Sep 2015 14:51:18 +0200 |
parents | 16bad7c459da |
children | ed6a704b028d |
line wrap: on
line source
function e = error2d(schm, v1, v2) hu = schm.h(1); hv = schm.h(2); e = sqrt(hu*hv*sum((v1-v2).^2)); end