[petsc-users] can I still use collectives like MPI_Bcast, MPI_Scatter on Petsc vectors?

Fangbo Wang fangbowa at buffalo.edu
Thu Feb 23 12:44:15 CST 2017


Assume I need to use Petsc function Matmult,  I need to define a Petsc
matrix "A" and a Petsc vector "b".

Mat A;
Vec b;

can I do MPI_bcast on this vector b?

Thank you very much!


On Thu, Feb 23, 2017 at 1:23 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Thu, Feb 23, 2017 at 12:09 PM, Fangbo Wang <fangbowa at buffalo.edu>
> wrote:
>
>> thank you very much!
>>
>
> I do not know what you mean about "on PETSc Vectors", but yes you can
> always call MPI functions whenever you want.
>
>   Matt
>
>
>> --
>> Fangbo Wang, PhD student
>> Stochastic Geomechanics Research Group
>> Department of Civil, Structural and Environmental Engineering
>> University at Buffalo
>> Email: *fangbowa at buffalo.edu <fangbowa at buffalo.edu>*
>>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>



-- 
Fangbo Wang, PhD student
Stochastic Geomechanics Research Group
Department of Civil, Structural and Environmental Engineering
University at Buffalo
Email: *fangbowa at buffalo.edu <fangbowa at buffalo.edu>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170223/5d17087b/attachment.html>


More information about the petsc-users mailing list