diff +sbp/D2Variable.m @ 425:e56dbd9e4196 feature/grids

Merge feature/beams
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Feb 2017 16:09:02 +0100
parents 359861563866
children 43ea848b6aa1
line wrap: on
line diff
--- a/+sbp/D2Variable.m	Tue Feb 07 15:47:51 2017 +0100
+++ b/+sbp/D2Variable.m	Tue Feb 07 16:09:02 2017 +0100
@@ -18,7 +18,7 @@
 
     methods
         function obj = D2Variable(m,lim,order)
-            
+
             x_l = lim{1};
             x_r = lim{2};
             L = x_r-x_l;
@@ -30,12 +30,12 @@
                     [obj.H, obj.HI, obj.D1, obj.D2, obj.e_l,...
                         obj.e_r, obj.d1_l, obj.d1_r] = ...
                         sbp.implementations.d2_variable_4(m,obj.h);
-                    obj.borrowing.M.S = 0.2505765857;
+                    obj.borrowing.M.d1 = 0.2505765857;
                 case 2
                     [obj.H, obj.HI, obj.D1, obj.D2, obj.e_l,...
                         obj.e_r, obj.d1_l, obj.d1_r] = ...
                         sbp.implementations.d2_variable_2(m,obj.h);
-                    obj.borrowing.M.S = 0.3636363636; 
+                    obj.borrowing.M.d1 = 0.3636363636; 
                     % Borrowing const taken from Virta 2014
                     
                 otherwise
@@ -44,10 +44,13 @@
 
             obj.m = m;
             obj.M = [];
-
+        end
+        function str = string(obj)
+            str = [class(obj) '_' num2str(obj.order)];
         end
     end
 
+
 end