Dear Matt:<br><br>I checked the codes about MatMatSolve(). However, currently, PETSc didn&#39;t realize its parallel version. Is it right? I want to inverse the matrix parallelly. could you give me some examples about it? thanks a lot.<br>
<br>Regards,<br>Yujie<br><br><div><span class="gmail_quote">On 2/27/08, <b class="gmail_sendername">Matthew Knepley</b> &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Wed, Feb 27, 2008 at 11:05 AM, Yujie &lt;<a href="mailto:recrusader@gmail.com">recrusader@gmail.com</a>&gt; wrote:<br> &gt; Dear Sanjay:<br> &gt;<br> &gt; Thank you for your reply. I don&#39;t understand what you said. Now, I want to<br>
 &gt; use spooles package to inverse a sparse SPD matrix. I have further checked<br> &gt; the inferface about spooles in PETSc. I find although spooles can deal with<br> &gt; AX=B (B may be a dense matrix) with parallel LU factorization.<br>
 &gt;&nbsp;&nbsp;However, PETSc only provide the following:<br> &gt; 51: PetscErrorCode MatSolve_MPISpooles(Mat A,Vec b,Vec x)<br> &gt;&nbsp;&nbsp;I don&#39;t set b to a matrix even if I use<br> &gt;&nbsp;&nbsp;178: PetscErrorCode MatFactorNumeric_MPISpooles(Mat A,MatFactorInfo<br>
 &gt; *info,Mat *F) for LU factorization.<br> &gt;<br> &gt; Could you have any suggestions about this? thanks a lot.<br><br><br>MatMatSolve()<br><br> <a href="http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatMatSolve.html">http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatMatSolve.html</a><br>
<br>&nbsp;&nbsp; Matt<br><br><br> &gt; Regards,<br> &gt; Yujie<br> &gt;<br> &gt; On 2/26/08, Sanjay Govindjee &lt;<a href="mailto:sanjay@ce.berkeley.edu">sanjay@ce.berkeley.edu</a>&gt; wrote:<br> &gt; &gt; from my make file<br> &gt; &gt;<br>
 &gt; &gt; -@${MPIRUN} -s all -np $(NPROC) $(PROGNAME) -ksp_type preonly<br> &gt; &gt; -ksp_monitor -pc_type cholesky -mat_type mpisbaijspooles -log_summary<br> &gt; &gt; -on_error_attach_debugger -mat_spooles_symmetryflag 0&nbsp;&nbsp;-options_left<br>
 &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; -sg<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; Yujie wrote:<br> &gt; &gt; &gt; Hi, everyone<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; I have compiled PETSc with spooles. However, I try to find how to use<br>
 &gt; &gt; &gt; this package in PETSc directory. I can&#39;t find any examples for it.<br> &gt; &gt; &gt; Could you give me some advice? I want to use spooles to inverse a<br> &gt; &gt; &gt; sparse matrix. thanks a lot.<br>
 &gt; &gt; &gt;<br> &gt; &gt; &gt; Regards,<br> &gt; &gt; &gt; Yujie<br> &gt; &gt;<br> &gt; &gt;<br> &gt;<br> &gt;<br><br><br><br><br>--<br> What most experimenters take for granted before they begin their<br> experiments is infinitely more interesting than any results to which<br>
 their experiments lead.<br> -- Norbert Wiener<br><br></blockquote></div><br>