[petsc-users] numerical quadrature

Jed Brown jed at jedbrown.org
Wed Feb 4 22:37:43 CST 2015


Matthew Knepley <knepley at gmail.com> writes:
> I would use MPI, but I would use
>
>   http://www.mpich.org/static/docs/v3.1/www3/MPI_Scan.html
>
> which will give you all the partial sums at once.

Yes, MPI_Scan if you want the owner of each x to know

  ∫_a^x f

MPI_Allreduce if you want everyone to know

  ∫_a^y f

for a single y known globally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150204/e8c9f7be/attachment.pgp>


More information about the petsc-users mailing list