[petsc-users] DMNetworkSetSizes called by all processors

Miguel Angel Salazar de Troya salazardetroya at gmail.com
Fri Feb 20 13:10:40 CST 2015


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


More information about the petsc-users mailing list