Re: [petsc-dev] Question about DMCreateDomainDecomposition()
18 Jul
2016
18 Jul
'16
10:06 a.m.
On 18/07/16 15:49, Lulu Liu wrote:
Hi,
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; ierr =DMCreateDomainDecomposition(da,&n,NULL,NULL,NULL,&subdms);CHKERRQ(ierr); PetscPrintf(PETSC_COMM_WORLD,"### n==%d\n", n);
You need to do -da_local_subdomains nsubdomain_per_process or else call DMDASetNumLocalSubdomains Cheers, Lawrence
3677
Age (days ago)
3677
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lawrence Mitchell