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 = []
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
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()