ProcessorGroup* source_group = new MEDCoupling::MPIProcessorGroup(interface,procs_source);
//
MPI_Barrier(MPI_COMM_WORLD);
+ // Global nodal indexing - declared here since the data needs to stay alive for the
+ // synchronize() and sendRecv() parts:
+ const mcIdType globalNumberingP2[5]={0,1,2,3,4};
+ const mcIdType globalNumberingP3[3]={4,2,5};
+ const mcIdType globalNumberingP4[6]={3,6,7,4,8,5};
+
if(source_group->containsMyRank())
{
if(rank==0)
myCoords->decrRef();
paramesh=new ParaMESH(mesh,*target_group,targetMeshName);
DataArrayIdType *da=DataArrayIdType::New();
- const mcIdType globalNumberingP2[5]={0,1,2,3,4};
da->useArray(globalNumberingP2,false,DeallocType::CPP_DEALLOC,5,1);
paramesh->setNodeGlobal(da);
da->decrRef();
myCoords->decrRef();
paramesh=new ParaMESH(mesh,*target_group,targetMeshName);
DataArrayIdType *da=DataArrayIdType::New();
- const mcIdType globalNumberingP3[3]={4,2,5};
da->useArray(globalNumberingP3,false,DeallocType::CPP_DEALLOC,3,1);
paramesh->setNodeGlobal(da);
da->decrRef();
myCoords->decrRef();
paramesh=new ParaMESH(mesh,*target_group,targetMeshName);
DataArrayIdType *da=DataArrayIdType::New();
- const mcIdType globalNumberingP4[6]={3,6,7,4,8,5};
da->useArray(globalNumberingP4,false,DeallocType::CPP_DEALLOC,6,1);
paramesh->setNodeGlobal(da);
da->decrRef();