view convergence.m @ 1020:5359a61cb4d9 feature/advectionRV

Add utility for constructing the operators used by a discretization emplying RV-stabilization - Add constructDiffOps which creates the operatores used for a scheme with RV-stabilization - Minor clean up in RungekuttaExteriorRV
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 14 Dec 2018 18:33:10 +0100
parents ad1a41d135a1
children
line wrap: on
line source

function q = convergence(e,h)
    for i = 1:length(e)-1
        q(i) = log(e(i)/e(i+1))/log(h(i+1)/h(i));
    end
end