hi, everyone<br><br>now, I want to use Hypre package via PETSc&nbsp;in&nbsp;third&nbsp;package.&nbsp;I&nbsp;need&nbsp;to&nbsp;visit&nbsp;the&nbsp;variable&nbsp;&quot;bs&quot;&nbsp;in&nbsp;Mat&nbsp;struct.&nbsp;In&nbsp;hypre.c, this variable 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-&gt;setup == HYPRE_BoomerAMGSetup) {<br>129:     MatGetBlockSize(pc-&gt;pmat,&amp;bs);<br>130:     if (bs &gt; 1) {<br>131:       HYPRE_BoomerAMGSetNumFunctions(jac-&gt;hsolver,bs);
<br>132:     }<br>133:   };<br><br>However, I can&#39;t visit this variable. Now, I have get the pointer of PC I use. I can&#39;t visit the variable pmat in my code. I can&#39;t find any function to  realize this function from PETSc manual.
<br>Could you give me some advice about how to do?<br><br>Merry X&#39;mas!<br><br>Regards,<br>Yujie<br><br>