Mercurial > repos > public > sbplib
comparison +noname/convergence.m @ 221:3e1d8051e68e feature/beams
Fixed typo.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 28 Jun 2016 13:19:45 +0200 |
parents | fc07ebc49412 |
children |
comparison
equal
deleted
inserted
replaced
220:5df8d20281fe | 221:3e1d8051e68e |
---|---|
28 % Get the solution to be compared | 28 % Get the solution to be compared |
29 v = v_repr.v; | 29 v = v_repr.v; |
30 | 30 |
31 % Get the reference solution vector | 31 % Get the reference solution vector |
32 if isa(reference,'function_handle'); | 32 if isa(reference,'function_handle'); |
33 x = v_repr.grid.Points(); | 33 x = v_repr.grid.points(); |
34 v_ref = reference(x,T); | 34 v_ref = reference(x,T); |
35 else | 35 else |
36 % Downsample the reference solution | 36 % Downsample the reference solution |
37 v_ref = reference.grid.restrictFunc(reference.v, v_repr.grid); | 37 v_ref = reference.grid.restrictFunc(reference.v, v_repr.grid); |
38 end | 38 end |