Salome HOME
[bos #37406][CEA] Fixed segfault in YACS_YacsRuntimeTest on UB22,FD36 and FD37 by...
[modules/yacs.git] / src / runtime / SalomeOptimizerLoop.hxx
index 17d5916b97d6052cd5cca9a91ac420b18f752325..ec2c24712594fa2cc1da9ed3429dc7bd201cfb84 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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;
     };
   }
 }