[petsc-users] PETSc ordering with ref to fig 9 in manual

TAY wee-beng zonexo at gmail.com
Fri Jul 31 02:49:05 CDT 2015


Supposed I create a DM called da_u



call DMCreateGlobalVector(da_u,u_global,ierr)

call DMCreateLocalVector(da_u,u_local,ierr)

I would like to know how PETSc stores the u_local values in the memory. 
As shown in fig9 on a 4 procs, assuming a stencil width of 1 for the 
ghost values, should it be:

1. 1,2,3....8,9,10,12,14,16,17,18 or

2. 1,2,3....8,9,16,17,18,10,12,14

Thank you

Yours sincerely,

TAY wee-beng

More information about the petsc-users mailing list