[petsc-users] DM global/ local vectors and DMDAVecGetArrayF90 indics

TAY wee-beng zonexo at gmail.com
Mon Jul 16 16:42:49 CDT 2012


Hi,

I have 2 questions.

When I use DMCreateGlobalVector and DMCreateLocalVector with

Vec pressure_global, pressure_local

call DMCreateGlobalVector(da_dof1,pressure_global,ierr)

call DMCreateLocalVector(da_dof1,pressure_local,ierr)

Are the pressure_global and pressure_local using the same memory space, 
or are they seperate?

Another thing is in Fortran, DMDAVecGetArrayF90  gives an array which 
starts from 0. However, my Fortran array usually starts from 1. Is there 
any simple ways to have the array starting from 1 instead?

Thanks

-- 
Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list