<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<blockquote type="cite"
cite="mid:CAJ98EDoRHaLsv8D24Rts40voW+x+S_k+yxNBAscTcg4BRGXYxg@mail.gmail.com">
<div>
<div class="gmail_quote"><br>
<div dir="auto">I mean directly build the preconditioner with
the required block diagonal structure. Then do don't need to
use something like PCBJACOBI or PCASM to extract the block
diagonal operator from your original operator.</div>
<br>
</div>
</div>
</blockquote>
<br>
I know the block structure. I saved the block sizes in SadeqSize
array, and I was trying to tell PCBJACOBI to use it:<br>
<br>
ierr = PCBJacobiSetTotalBlocks(Petsc_pc, 2*Nx*Ny*Nz, SadeqSize);
<br>
<br>
Which based on previous communications, it seems to be incompatible
with SNES, and PCBJacobiSetTotalBlocks function returned an error.<br>
</body>
</html>