view +scheme/errorRelative.m @ 1283:70939ea9a71f feature/poroelastic

Bugfix in Elastic2dVariable
author Martin Almquist <malmquist@stanford.edu>
date Tue, 23 Jun 2020 13:31:01 -0700
parents ed6a704b028d
children
line wrap: on
line source

function e = errorRelative(~,v1,v2)
    e = sqrt(sum((v1-v2).^2)/sum(v2.^2));
end