Salome HOME
Split loadTemplate into 2 parts to ease overload of default visitor
[tools/adao_interface.git] / TestAdaoExchange.cxx
index 30d29490b85bec16256ccf92d56f8614c106d9da..668201f5e2ce9a6d2a1a6918db29291c6acdb8f2 100644 (file)
@@ -124,6 +124,7 @@ void AdaoExchangeTest::test3DVar()
   AdaoExchangeLayer adao;
   adao.init();
   // For bounds, Background/Vector, Observation/Vector
+  adao.setFunctionCallbackInModel(&mm);
   Visitor2 visitorPythonObj(adao.getPythonContext());
   {
     AutoGIL agil;
@@ -181,6 +182,7 @@ void AdaoExchangeTest::testBlue()
   AdaoExchangeLayer adao;
   adao.init();
   // For bounds, Background/Vector, Observation/Vector
+  adao.setFunctionCallbackInModel(&mm);
   Visitor2 visitorPythonObj(adao.getPythonContext());
   {
     AutoGIL agil;
@@ -237,6 +239,7 @@ void AdaoExchangeTest::testNonLinearLeastSquares()
   AdaoExchangeLayer adao;
   adao.init();
   // For bounds, Background/Vector, Observation/Vector
+  adao.setFunctionCallbackInModel(&mm);
   Visitor2 visitorPythonObj(adao.getPythonContext());
   {
     AutoGIL agil;
@@ -277,6 +280,7 @@ void AdaoExchangeTest::testCasCrue()
   AdaoExchangeLayer adao;
   adao.init();
   // For bounds, Background/Vector, Observation/Vector
+  adao.setFunctionCallbackInModel(&mm);
   VisitorCruePython visitorPythonObj(adao.getPythonContext());
   {
     AutoGIL agil;