Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCouplingCorba_Swig / MEDCouplingCorbaSwigTestServ.py
index 76d1f5bd4d1237c95f3cf34e3edd039cba4a71b1..2645c5dbefdeba63bfd5d8007a44418d02b5bcde 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +16,7 @@
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+# Author : Anthony Geay (CEA/DEN)
 
 import MEDCouplingCorbaSwigTest
 import MEDCouplingCorbaServantTest_idl
@@ -37,8 +38,11 @@ class MEDCouplingMeshFieldFactoryComponentPy(MEDCouplingCorbaServantTest_idl._0_
         self._orb.shutdown(0)
 
     def get1DMesh(self):
+        import SALOME_MED
         mesh=self._test.build1DMesh()
-        return MEDCouplingUMeshServant._this(mesh)
+        ret=MEDCouplingUMeshServant._this(mesh)
+        assert isinstance(ret,SALOME_MED._objref_MEDCouplingUMeshCorbaInterface)
+        return ret
     
     def get2DMesh(self):
         mesh=self._test.build2DMesh()
@@ -67,6 +71,22 @@ class MEDCouplingMeshFieldFactoryComponentPy(MEDCouplingCorbaServantTest_idl._0_
     def getCMesh(self):
         mesh=self._test.buildCMesh()
         return MEDCouplingCMeshServant._this(mesh)
+
+    def getIMesh(self):
+        mesh=self._test.buildIMesh()
+        return MEDCouplingIMeshServant._this(mesh)
+
+    def getCLMesh(self):
+        mesh=self._test.buildCLMesh()
+        return MEDCouplingCurveLinearMeshServant._this(mesh)
+
+    def get1SGTUMesh(self):
+        mesh=self._test.build1SGTUMesh()
+        return MEDCoupling1SGTUMeshServant._this(mesh)
+
+    def get1DGTUMesh(self):
+        mesh=self._test.build1DGTUMesh()
+        return MEDCoupling1DGTUMeshServant._this(mesh)
     
     def getFieldScalarOn2DNT(self):
         field=self._test.buildFieldScalarOn2DNT()