Mercurial > repos > public > sbplib
comparison diracDiscrCurve.m @ 1244:745dc1f1a069 feature/dirac_discr
Use assertType instead of assert(isa(...))
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 20 Nov 2019 20:22:53 +0100 |
parents | 1fbd93f24bed |
children | 25efceb0c392 |
comparison
equal
deleted
inserted
replaced
1243:4e0b88f3def1 | 1244:745dc1f1a069 |
---|---|
10 default_arg('order', m_order); | 10 default_arg('order', m_order); |
11 default_arg('opSet', {@sbp.D2Variable, @sbp.D2Variable}); | 11 default_arg('opSet', {@sbp.D2Variable, @sbp.D2Variable}); |
12 | 12 |
13 dim = length(x_s); | 13 dim = length(x_s); |
14 assert(dim == 2, 'diracDiscrCurve: Only implemented for 2d.'); | 14 assert(dim == 2, 'diracDiscrCurve: Only implemented for 2d.'); |
15 assert(isa(g, 'grid.Curvilinear')); | 15 assertType(g, 'grid.Curvilinear'); |
16 | 16 |
17 % Compute Jacobian | 17 % Compute Jacobian |
18 J = jacobian(g, opSet, order); | 18 J = jacobian(g, opSet, order); |
19 | 19 |
20 % Find approximate logical coordinates of point source | 20 % Find approximate logical coordinates of point source |