Mercurial > repos > public > sbplib
comparison +grid/Curvilinear.m @ 386:4f935415700e feature/beams
Fixed bug in curvilinear.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Jan 2017 13:28:43 +0100 |
parents | d32c749408cb |
children | 692bf61385c0 |
comparison
equal
deleted
inserted
replaced
385:b361a04894e3 | 386:4f935415700e |
---|---|
65 X = obj.coords; | 65 X = obj.coords; |
66 end | 66 end |
67 | 67 |
68 % Restricts the grid function gf on obj to the subgrid g. | 68 % Restricts the grid function gf on obj to the subgrid g. |
69 function gf = restrictFunc(obj, gf, g) | 69 function gf = restrictFunc(obj, gf, g) |
70 gf = obj.logic.restrictFunc(gf, g.baseGrid()); | 70 gf = obj.logic.restrictFunc(gf, g.logic); |
71 end | 71 end |
72 | 72 |
73 % Projects the grid function gf on obj to the grid g. | 73 % Projects the grid function gf on obj to the grid g. |
74 function gf = projectFunc(obj, gf, g) | 74 function gf = projectFunc(obj, gf, g) |
75 gf = obj.logic.projectFunc(gf,g.baseGrid()); | 75 gf = obj.logic.projectFunc(gf,g.logic); |
76 end | 76 end |
77 | 77 |
78 function h = scaling(obj) | 78 function h = scaling(obj) |
79 if isempty(obj.logic.h) | 79 if isempty(obj.logic.h) |
80 error('grid:Curvilinear:NoScalingSet','No scaling set'); | 80 error('grid:Curvilinear:NoScalingSet','No scaling set'); |