diff +sbp/D2Variable.m @ 427:a613960a157b feature/quantumTriangles

merged with feature/beams
author Ylva Rydin <ylva.rydin@telia.com>
date Thu, 26 Jan 2017 15:59:25 +0100
parents 359861563866
children 43ea848b6aa1
line wrap: on
line diff
--- a/+sbp/D2Variable.m	Wed Jan 25 17:14:17 2017 +0100
+++ b/+sbp/D2Variable.m	Thu Jan 26 15:59:25 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