changeset 386:4f935415700e feature/beams

Fixed bug in curvilinear.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Jan 2017 13:28:43 +0100
parents b361a04894e3
children 45c69aff2f41
files +grid/Curvilinear.m +grid/equidistantTest.m
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/+grid/Curvilinear.m	Mon Jan 02 12:21:01 2017 +0100
+++ b/+grid/Curvilinear.m	Thu Jan 05 13:28:43 2017 +0100
@@ -67,12 +67,12 @@
 
         % Restricts the grid function gf on obj to the subgrid g.
         function gf = restrictFunc(obj, gf, g)
-            gf = obj.logic.restrictFunc(gf, g.baseGrid());
+            gf = obj.logic.restrictFunc(gf, g.logic);
         end
 
         % Projects the grid function gf on obj to the grid g.
         function gf = projectFunc(obj, gf, g)
-            gf = obj.logic.projectFunc(gf,g.baseGrid());
+            gf = obj.logic.projectFunc(gf,g.logic);
         end
 
         function h = scaling(obj)
--- a/+grid/equidistantTest.m	Mon Jan 02 12:21:01 2017 +0100
+++ b/+grid/equidistantTest.m	Thu Jan 05 13:28:43 2017 +0100
@@ -47,4 +47,4 @@
         g = grid.equidistant(in{i}{:});
         testCase.verifyEqual(g.points(),out{i});
     end
-end
\ No newline at end of file
+end