<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ok, but if I look at <div class=""><br class=""></div><div class=""><a href="http://www.mcs.anl.gov/petsc/petsc-dev/src/sys/classes/random/impls/sprng/sprng.c" class="">http://www.mcs.anl.gov/petsc/petsc-dev/src/sys/classes/random/impls/sprng/sprng.c</a></div><div class=""><br class=""></div><div class="">there is a comment:</div><div class=""><br class=""></div><div class=""><pre style="word-wrap: break-word; white-space: pre-wrap;" class="">   This is NOT currently using a parallel random number generator. Sprng does have
   an MPI version we should investigate.
</pre></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;">-gideon</span>

</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On Dec 11, 2015, at 11:30 AM, Hong <<a href="mailto:hzhang@mcs.anl.gov" class="">hzhang@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">Gideon:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I was looking at the source files and noticed in the comments that when petsc is built with sprng, the petsc interface isn’t to the parallel sprng RNG.  But is the package built with MPI, so that I could manually use the parallel RNG?</div></blockquote><div class="">Petsc- sprng-1.0 interface was written many years ago. </div><div class="">It is for parallel computation. Students contributed an example at</div><div class="">petsc/src/sys/classes/random/examples/tutorials/ex2.c<br class=""></div><div class=""><br class=""></div><div class="">Very few users have ever used this interface.</div><div class="">If you encounter any problem, please report to us.</div><div class=""><br class=""></div><div class="">Hong</div></div><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>