[petsc-users] DMNetworkSetSizes called by all processors

Abhyankar, Shrirang G. abhyshr at mcs.anl.gov
Fri Feb 20 13:24:46 CST 2015


Miguel,
  In this example the DM is created initially only on proc. 0. Once the DM gets partitioned (DMNetworkDistribute()), another DM is created that has the appropriate node,edge,component info on each processor.

Shri

From: Miguel Angel Salazar de Troya <salazardetroya at gmail.com<mailto:salazardetroya at gmail.com>>
Date: Fri, 20 Feb 2015 13:10:40 -0600
To: "petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>" <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>>
Subject: [petsc-users] DMNetworkSetSizes called by all processors

Hi

I was checking this example:

http://www.mcs.anl.gov/petsc/petsc-current/src/snes/examples/tutorials/network/pflow/pf.c.html

In line 443, the data is read by processor 0 and DMNetworkSetSizes is called in 461 by all processors, since it is collective. However, the data read by processor 0 has not been broadcasted and numEdges and numVertices and have still a value of zero for the other processors. Does this mean that the other processors create a dummy DMNetwork and wait to receive their partition once the partitioning is called in line 508? Is this a standard procedure to create meshes in parallel?

Thanks
Miguel

--
Miguel Angel Salazar de Troya
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
salaza11 at illinois.edu<mailto:salaza11 at illinois.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150220/7d192c22/attachment.html>


More information about the petsc-users mailing list