From 1fd0c93361abca7e6a0f0524fb6aa054727444c0 Mon Sep 17 00:00:00 2001
From: galperti <cristian.galperti@epfl.ch>
Date: Tue, 21 Jun 2022 12:22:22 +0200
Subject: [PATCH] bound property of mdswg object added

---
 classes/SCDclass_mdswg.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/classes/SCDclass_mdswg.m b/classes/SCDclass_mdswg.m
index ba89bf4..590731b 100644
--- a/classes/SCDclass_mdswg.m
+++ b/classes/SCDclass_mdswg.m
@@ -28,6 +28,8 @@ classdef SCDclass_mdswg < matlab.mixin.Heterogeneous
         
         overrideshot        % =1 if instantiated with overridden shot number, in this case this shot number will be always used during actualization
         overrideshotn       % shot number in case of overridden shot number
+        
+        bound               % true if wavegen has been bound to another SCDDS component
     end
     
     properties 
@@ -50,6 +52,7 @@ classdef SCDclass_mdswg < matlab.mixin.Heterogeneous
             
             obj.verbose=1;
             obj.wavegenbasestruct='';
+            obj.bound=false;
         end
         
         function obj=parseconstructor(obj, srctdi, destwavegen, varargin)
@@ -81,6 +84,7 @@ classdef SCDclass_mdswg < matlab.mixin.Heterogeneous
           obj(ii) = obj(ii).setmodelname(modelname);
           obj(ii) = obj(ii).setdatadictionary(datadictionary);
           obj(ii) = obj(ii).settiminginfo(timingsrc);
+          obj(ii).bound = true;
         end
       end
     end
-- 
GitLab