[petsc-users] Can i use rank=0 to set matrix value, and solve with all the cpus.

Dave May dave.mayhem23 at gmail.com
Mon Aug 29 06:29:05 CDT 2016


On 29 August 2016 at 13:19, 丁老师 <ztdepyahoo at 163.com> wrote:

> Dear friends:
>     I want to use the root node(MyRank=0) only to set the matrix values,
> while solve the Ax=b with all the CPU nodes.
>   will it work?
>

Yes it will "work", in the sense that the code will run.

Note however that this approach, whilst "working", is not the recommended
way to assemble a matrix as (i) it is sequential in nature and (ii) will
involve a lot of data movement across the network.

Thanks,
  Dave



>
> Regards
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160829/6288e80f/attachment.html>


More information about the petsc-users mailing list