<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 17, 2015 at 11:30 PM, Marco Zocca <span dir="ltr"><<a href="mailto:zocca.marco@gmail.com" target="_blank">zocca.marco@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What does this declaration in petscsys.h do?<br>
<br>
What type and value does PETSC_COMM_WORLD expand to?<br></blockquote><div><br></div><div>The type is MPI_Comm. If you mean what basic type, that is up to the MPI</div><div>implementation. However, I think you can assume that it fits in a (void *).</div><div><br></div><div>The value is obtained at runtime from MPI_Comm_dup or from user input.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
#define PETSC_EXTERN extern PETSC_VISIBILITY_PUBLIC<br>
<br>
PETSC_EXTERN MPI_Comm PETSC_COMM_WORLD;<br>
<br>
<br>
Thank you in advance,<br>
Marco<br>
</blockquote></div><div><br></div>-- <br><div class="gmail_signature">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></div>