[petsc-users] [PATCH 2/2] Call KSPSetFromOptions before setting fieldsplit-specific options

Umut Tabak u.tabak at tudelft.nl
Sun Sep 8 08:48:10 CDT 2013


On 09/08/2013 03:45 PM, Jed Brown wrote:
>
> This is an invalid memory access and does not use ISCreateBlock correctly.
>
>    PetscInt sz1 = 1490, sz2 = 2432;
>
>    PetscInt bs = 2, n1=1, n2=1, inputindices[]={0}; /* block size is 2 */
>      
>    ISCreateBlock(PETSC_COMM_SELF,sz1,n1,inputindices,
>                  PETSC_COPY_VALUES,&is_row1);
>    ISCreateBlock(PETSC_COMM_SELF,sz2,n2,inputindices+n1,
>                  PETSC_COPY_VALUES,&is_row2);
Ok, I am trying to understand what my mistake is.


More information about the petsc-users mailing list