\r
cout << "create patterns for block " << qPrintable(name) << endl;\r
if (evaluator == NULL) evaluator = new ArithmeticEvaluator();\r
- bool ok = true; \r
if (! isGeneratorBlock()) {\r
try {\r
createDelta();\r
return;\r
}\r
\r
- // look for parameter names\r
- bool ok = true;\r
+ // look for parameter names \r
double result = 0;\r
try {\r
result = evaluateExpression(deltaStr);\r
cout << "call to " << qPrintable(fctName) << endl;\r
#endif\r
\r
- lengthCP = -1;\r
- bool ok = true; \r
+ lengthCP = -1; \r
QHash<QString,QString> consPattern = implementation->getConsumptionPattern(); \r
\r
foreach(AbstractInterface* iface, getControlInputs()) { \r
static QString fctName = "FunctionalBlock::createAdmittance()";\r
#ifdef DEBUG_FCTNAME\r
cout << "call to " << qPrintable(fctName) << endl;\r
-#endif\r
- bool ok = true;\r
+#endif \r
// firstly, copy CP in AP\r
QMapIterator<AbstractInterface*,QList<char>* > iterC(consumptionPattern);\r
while (iterC.hasNext()) {\r
#ifdef DEBUG_FCTNAME\r
cout << "call to " << qPrintable(fctName) << endl;\r
#endif\r
- \r
- bool ok = true;\r
+ \r
// firstly, create input pattern\r
try {\r
createInputPattern();\r