<div dir="ltr">On Tue, Oct 1, 2013 at 7:21 PM, Gryllida <span dir="ltr"><<a href="mailto:gryllida@fastmail.fm" target="_blank">gryllida@fastmail.fm</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>On Wed, 1 Sep 2010 20:54:54 +0000, "Li, Zhisong (lizs)" <lizs at <a href="http://mail.uc.edu" target="_blank">mail.uc.edu</a>> wrote:<br>

>>  Hi, Petsc Team,<br>
>><br>
>> I wonder if Petsc has any function like MPI_Bcast() which can<br>
>> broadcast a value to all processes. If we directly add MPI functions<br>
>> into the Petsc program, the MPI datatype may be incompatible with the<br>
>> Petsc datatype. Does Petsc have any easy way to handle this?<br>
><br>
>PETSc registers the types MPIU_SCALAR, MPIU_REAL, and MPIU_INT so you<br>
>can use these to send PetscScalar, PetscReal, and PetscInt respectively<br>
>using any MPI functions.<br>
><br>
>Jed<br>
><br>
<br>
What about MPI_DOUBLE?<br>
</blockquote></div><br>That already exists.</div><div class="gmail_extra"><br></div><div class="gmail_extra">  Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>