Dear Barry:<br><br>Thank you for your reply. Further problem is whether I only set the block size of Mat using MatSetBlockSize() in Processor 0 when I run my code on Cluster? thank a lot.<br><br>Happy new year:).<br><br>Regards,
<br>Yujie<br><br><div><span class="gmail_quote">On 12/21/07, <b class="gmail_sendername">Barry Smith</b> <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> 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">
<br> pmat is the matrix you set with KSPSetOperators() so you just need<br>to set block size of that matrix.<br><br>On Dec 21, 2007, at 1:16 AM, Yujie wrote:<br><br>> hi, everyone<br>><br>> now, I want to use Hypre package via PETSc in third package. I need
<br>> to visit the variable "bs" in Mat struct. In hypre.c, this variable<br>> may let BoomerAMG know the block size of Mat. The code is as follows:<br>><br>> 127: /* special case for BoomerAMG */<br>
> 128: if (jac->setup == HYPRE_BoomerAMGSetup) {<br>> 129: MatGetBlockSize(pc->pmat,&bs);<br>> 130: if (bs > 1) {<br>> 131: HYPRE_BoomerAMGSetNumFunctions(jac->hsolver,bs);<br>> 132: }<br>> 133: };
<br>><br>> However, I can't visit this variable. Now, I have get the pointer of<br>> PC I use. I can't visit the variable pmat in my code. I can't find<br>> any function to realize this function from PETSc manual.
<br>> Could you give me some advice about how to do?<br>><br>> Merry X'mas!<br>><br>> Regards,<br>> Yujie<br>><br><br></blockquote></div><br>