]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 2 Feb 2010 09:29:21 +0000 (09:29 +0000)
committerageay <ageay>
Tue, 2 Feb 2010 09:29:21 +0000 (09:29 +0000)
src/ParaMEDMEM_Swig/test_InterpKernelDEC.py

index 83d4a13ecc91b033767e3b45f3c5d5f2fe4c0909..da1cccc39132e09d50648e01aa0668f4713e84ed 100755 (executable)
@@ -68,7 +68,7 @@ class ParaMEDMEMBasicsTest(unittest.TestCase):
             nb_local=mesh.getNumberOfCells()
             value = [1.0]*nb_local
             parafield.getField().setValues(value)
-            icocofield = ICoCoMEDField(paramesh,parafield)
+            icocofield = ICoCoMEDField(mesh,parafield.getField())
             dec.setMethod("P0")
             dec.attachLocalField(icocofield)
             pass
@@ -83,18 +83,18 @@ class ParaMEDMEMBasicsTest(unittest.TestCase):
             nb_local=mesh.getNumberOfCells()
             value = [0.0]*nb_local
             parafield.getField().setValues(value)
-            icocofield = ICoCoMEDField(paramesh,parafield)
+            icocofield = ICoCoMEDField(mesh,parafield.getField())
             dec.setMethod("P0")
             dec.attachLocalField(icocofield)
             pass
         
         if source_group.containsMyRank():
-            field_before_int = parafield.getVolumeIntegral(0)
+            field_before_int = parafield.getVolumeIntegral(0,True)
             dec.synchronize()
             dec.setForcedRenormalization(False)
             dec.sendData()
             dec.recvData()
-            field_after_int=parafield.getVolumeIntegral(0);
+            field_after_int=parafield.getVolumeIntegral(0,True);
             self.failUnless(math.fabs(field_after_int-field_before_int)<1e-8)
             pass
         else: