[petsc-users] VecGetOwnershipRanges

Hui Zhang mike.hui.zhang at hotmail.com
Tue Apr 16 10:44:03 CDT 2013


VecGetOwnershipRanges(Vec x,const PetscInt *ranges[])

From the html manual page,

range -array of length size+1 with the start and end+1 for each process 

Is it PetscInt ranges[size+1][2] or PetscInt ranges[size+1]?

The function calls

PetscLayoutGetRanges(PetscLayout map,const PetscInt *range[])

for which the manual page says

range -start of each processors range of indices (the final entry is one more then the last index on the last process) 

I'm sorry that I'm confused. 


More information about the petsc-users mailing list