[petsc-dev] Question about DMCreateDomainDecomposition()

Lulu Liu lulu.liu at kaust.edu.sa
Mon Jul 18 09:49:45 CDT 2016


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 number of subproblems in the domain decomposition.
I feel confused why n does not return the number of processors, could
you explain it? Thanks!

 PetscInt n;
 DM *subdms;
 PetscPrintf(PETSC_COMM_WORLD,"### n==%d\n", n);


### n==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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160718/a27b0551/attachment.html>

More information about the petsc-dev mailing list