view convergence.m @ 1322:412b8ceafbc6 feature/poroelastic

Add Zt to output args for Elastic2dCurvilinearAnisotropic.interfaceNormalTangential
author Martin Almquist <malmquist@stanford.edu>
date Sat, 24 Oct 2020 20:58:26 -0700
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