Salome HOME
Fix issue when there are two optimizer loops.
[modules/yacs.git] / src / runtime / SalomeOptimizerLoop.hxx
index 594352d38c719fb8c5fcc967f240ac4760ba7518..e8d321a2a12250e375097380cd0d22adb254ee16 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "YACSRuntimeSALOMEExport.hxx"
 #include "OptimizerLoop.hxx"
+#include <Python.h>
 
 namespace YACS
 {
@@ -39,6 +40,8 @@ namespace YACS
         SalomeOptimizerLoop(const SalomeOptimizerLoop& other, ComposedNode *father, bool editionOnly);
         ~SalomeOptimizerLoop();
         virtual std::string typeName() {return "YACS__ENGINE__SalomeOptimizerLoop";}
+      private:
+        PyObject * _pyAlgo = nullptr;
     };
   }
 }