<div dir="ltr">Hi,<div><br></div><div>I add the following lines in the example /petsc/src/snes/examples/tutorials/ex19. When I run this example using different numbers of processors, n always equals to 1. However, according to the manual, n is the <font color="#000000" face="arial, helvetica, sans-serif">number of subproblems in the domain decomposition. I feel confused why n does not return the number of processors, could you explain it? Thanks!</font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div> <font size="1">PetscInt n;</font></div><div><font size="1"> DM *subdms;</font></div><div><font size="1"> ierr =DMCreateDomainDecomposition(da,&n,NULL,NULL,NULL,&subdms);CHKERRQ(ierr);</font></div><div><font size="1"> PetscPrintf(PETSC_COMM_WORLD,"### n==%d\n", n);</font></div><div><font size="1"> </font><br></div><div><div><pre style="color:rgb(0,0,0)">Output:</pre><pre style="color:rgb(0,0,0)">### n==1</pre><pre style="color:rgb(0,0,0)"><table border="0" cellpadding="0" cellspacing="0" style="white-space:normal"><tbody><tr><td align="LEFT" valign="TOP"><br></td><td><br></td></tr></tbody></table></pre></div>
</div></div>
<br>
<div><hr></div><font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font>