Salome HOME
[EDF27562] : 2 new methods to simulate computation to ease test in charge YACS
[modules/kernel.git] / src / Basics / KernelBasis.i
index d2cdbfc1374d8e3312992e9752ceaa5a155e55db..fdc4df0a911711f619ecc5702db0cd0a18bf11f3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D
+// Copyright (C) 2021-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 %{
 #include "KernelBasis.hxx"
+#include "HeatMarcel.hxx"
+using namespace SALOME;
 %}
 
 %include "std_string.i"
 
+%rename (HeatMarcel) HeatMarcelSwig;
+
 bool getSSLMode();
 void setSSLMode(bool sslMode);
 
+bool getGUIMode();
+void setGUIMode(bool guiMode);
+
 std::string getIOROfEmbeddedNS();
 void setIOROfEmbeddedNS(const std::string& ior);
+
+double GetTimeAdjustmentCst();
+
+%inline
+{
+PyObject *HeatMarcelSwig(double timeAjustment, unsigned int nbThreads = 0)
+{
+  double timeInS = 0.0;
+  long double piVal = HeatMarcel(timeAjustment,timeInS,nbThreads);
+  PyObject *ret(PyTuple_New(2));
+  PyTuple_SetItem(ret,0,SWIG_From_double((double)piVal));
+  PyTuple_SetItem(ret,1,SWIG_From_double(timeInS));
+  return ret;
+}
+}