[petsc-users] ISGlobalToLocalMappingApplyBlock

Adrian Croucher a.croucher at auckland.ac.nz
Wed Nov 15 16:15:57 CST 2017


hi Dave,


On 15/11/17 21:34, Dave May wrote:
>
>
>     Or am I wrong to expect this to give the same results regardless of
>     blocksize?
>
>
>
> Yep.

Maybe I am not using this function correctly then.

The man page says it "Provides the local block numbering for a list of 
integers specified with a block global numbering."

So I thought if I put in global block indices it would give me the 
corresponding local block indices- which would be the same regardless of 
the size of each block.
>
> However the large negative number being printed looks an uninitialized 
> variable. This seems odd as with mode = MASK nout should equal N and 
> any requested block indices not in the IS should result in -1 being 
> inserted in your local_indices array.
>
> What's the value of nout?

nout returns 1 on both ranks, as expected.

- Adrian

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 4611

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171116/daba4924/attachment-0001.html>


More information about the petsc-users mailing list