[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


Hi,

Supposed I create a DM called da_u

call 
DMDACreate3d(MPI_COMM_WORLD,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE,DMDA_STENCIL_STAR,size_x,size_y,&

size_z,PETSC_DECIDE,PETSC_DECIDE,PETSC_DECIDE,1,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da_u,ierr)

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