Mercurial > repos > public > sbplib
comparison +noname/Discretization.m @ 26:ed6a704b028d
Made some changes to error functions and comparison functions before finalizing convergence script.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Sep 2015 14:54:26 +0200 |
parents | c7efff913935 |
children | 7067bf8adbfa |
comparison
equal
deleted
inserted
replaced
25:791decafe6e4 | 26:ed6a704b028d |
---|---|
1 classdef Discretization < handle | 1 classdef Discretization < handle |
2 properties (Abstract) | 2 properties (Abstract) |
3 name %Short description | 3 name %Short description |
4 description %Longer description | 4 description %Longer description |
5 order %Order of accuracy | 5 order %Order of accuracy |
6 h % scalar desciribing the grid spacing.. (IS THIS THE RIGHT PLACE FOR THIS?) | |
6 end | 7 end |
7 | 8 |
8 methods (Abstract) | 9 methods (Abstract) |
9 % Prints some info about the discretisation | 10 % Prints some info about the discretisation |
10 printInfo() | 11 printInfo() |
43 % state of the timestepper | 44 % state of the timestepper |
44 % type allows for different kinds of plots. Some special values are used by the lib. 'animate' and 'plot' for example | 45 % type allows for different kinds of plots. Some special values are used by the lib. 'animate' and 'plot' for example |
45 [update,hand] = setupPlot(obj, type) | 46 [update,hand] = setupPlot(obj, type) |
46 | 47 |
47 end | 48 end |
48 | |
49 methods(Abstract,Static) | |
50 % Compare two functions u and v in the discrete l2 norm. | |
51 e = compareSolutions(u, v) | |
52 | |
53 % Compare the functions u to the analytical function g in the discrete l2 norm. | |
54 e = compareSolutionsAnalytical(u, g) | |
55 end | |
56 end | 49 end |