From: ageay Date: Tue, 2 Feb 2010 09:37:46 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~229 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5745d8f278a40430de090fe5a03c3b09ca18ddb;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/ParaMEDMEM_Swig/test_StructuredCoincodentDEC.py b/src/ParaMEDMEM_Swig/test_StructuredCoincodentDEC.py index 98d227447..f9f4a6ebc 100755 --- a/src/ParaMEDMEM_Swig/test_StructuredCoincodentDEC.py +++ b/src/ParaMEDMEM_Swig/test_StructuredCoincodentDEC.py @@ -67,6 +67,7 @@ class ParaMEDMEMBasicsTest2(unittest.TestCase): paramesh=ParaMESH(mesh,source_group,"source mesh") comptopo=ComponentTopology(6) parafield=ParaFIELD(ON_CELLS,NO_TIME,paramesh,comptopo) + parafield.getField().setNature(ConservativeVolumic) nb_local=mesh.getNumberOfCells() global_numbering=paramesh.getGlobalNumberingCell2() value = [] @@ -76,9 +77,9 @@ class ParaMEDMEMBasicsTest2(unittest.TestCase): pass pass parafield.getField().setValues(value) - icocofield = ICoCoMEDField(paramesh,parafield) + icocofield = ICoCoMEDField(mesh,parafield.getField()) dec.setMethod("P0") - dec.attachLocalField(icocofield) + dec.attachLocalField(parafield) dec.synchronize() dec.sendData() pass @@ -89,12 +90,13 @@ class ParaMEDMEMBasicsTest2(unittest.TestCase): paramesh=ParaMESH(mesh, self_group, "target mesh") comptopo=ComponentTopology(6,target_group) parafield=ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo) + parafield.getField().setNature(ConservativeVolumic) nb_local=mesh.getNumberOfCells() value = [0.0]*(nb_local*comptopo.nbLocalComponents()) parafield.getField().setValues(value) - icocofield = ICoCoMEDField(paramesh,parafield) + icocofield = ICoCoMEDField(mesh,parafield.getField()) dec.setMethod("P0") - dec.attachLocalField(icocofield) + dec.attachLocalField(parafield) dec.synchronize() dec.recvData() recv_value = parafield.getField().getArray().getValues()