]> AND Private Git Repository - blast.git/blobdiff - GroupBlock.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
added admittance computation
[blast.git] / GroupBlock.cpp
index 474d5dc33afb4b59a68f02fab47ad5e4ed3118c3..2fc3012e62de0bf99d6dbec772df571170df530d 100644 (file)
@@ -108,7 +108,8 @@ void GroupBlock::removeGenericParameter(QString name) {
 void GroupBlock::initInputPattern() {
   foreach(AbstractInterface* iface, getControlInputs()) {
     ConnectedInterface* connIface = AI_TO_CON(iface);
 void GroupBlock::initInputPattern() {
   foreach(AbstractInterface* iface, getControlInputs()) {
     ConnectedInterface* connIface = AI_TO_CON(iface);
-    connIface->setOutputPattern(connIface->getConnectedFrom()->getOutputPattern());    
+    QList<char>* pattern = new QList<char>(*(connIface->getConnectedFrom()->getOutputPattern()));    
+    connIface->setOutputPattern(pattern);    
   }  
 }
 
   }  
 }
 
@@ -185,7 +186,8 @@ bool GroupBlock::computeOutputPattern(int nbExec) {
   if (canCompute) {
     foreach(AbstractInterface* iface, getControlOutputs()) {
       ConnectedInterface* connIface = AI_TO_CON(iface);
   if (canCompute) {
     foreach(AbstractInterface* iface, getControlOutputs()) {
       ConnectedInterface* connIface = AI_TO_CON(iface);
-      connIface->setOutputPattern(connIface->getConnectedFrom()->getOutputPattern());    
+      QList<char>* pattern = new QList<char>(*(connIface->getConnectedFrom()->getOutputPattern()));
+      connIface->setOutputPattern(pattern);    
     }
     setPatternComputed(true);
   }
     }
     setPatternComputed(true);
   }