[petsc-users] using PETSc commands in parallel for loop

Jed Brown jedbrown at mcs.anl.gov
Thu Jan 5 19:38:44 CST 2012


On Thu, Jan 5, 2012 at 19:27, Reza Madankan <rm93 at buffalo.edu> wrote:

> I am trying to parallelize this loop using MPI, but I don't get the right
> result. I appreciate if anyone could help me on that?
>

MPI is not a method for loop-level parallelization. Please read the PETSc
manual examples examples to learn how MPI-based parallelism works.

OpenMP is a different approach that specifically does loop-level
parallelism, but its scope is more limited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120105/6a8901e3/attachment.htm>


More information about the petsc-users mailing list