> On Nov 3, 2022, at 1:16 PM, Edoardo alinovi <edoardo.alin...@gmail.com> wrote: > > Ah, I was forgetting the most important thing... Are the size of idxm and > idxn equal to one if I insert 1 block or should I specify all the rows and > columns in the block? Yes, for a single block they are one. The block size is set with MatSetBlockSize() or in the preallocation routines or automatically if you use DMCreateMatrix(), the block size is not passed in during MatSetValuesBlocked() the matrix uses its internal value. Barry > > I am getting some memory issues with unallocated non zero values so I must > have made some mistake here... :( > > Sorry for the ton of questions!
- [petsc-users] On the usage of MatSetValuesBlocked Edoardo alinovi
- Re: [petsc-users] On the usage of MatSetValuesBlocked Matthew Knepley
- Re: [petsc-users] On the usage of MatSetValuesBlo... Edoardo alinovi
- Re: [petsc-users] On the usage of MatSetValuesBlocked Barry Smith
- Re: [petsc-users] On the usage of MatSetValuesBlo... Edoardo alinovi
- Re: [petsc-users] On the usage of MatSetValue... Edoardo alinovi
- Re: [petsc-users] On the usage of MatSetV... Edoardo alinovi
- Re: [petsc-users] On the usage of Ma... Barry Smith
- Re: [petsc-users] On the usage o... Edoardo alinovi
- Re: [petsc-users] On the usa... Edoardo alinovi
- Re: [petsc-users] On the usa... Edoardo alinovi
- Re: [petsc-users] On the usa... Barry Smith
- Re: [petsc-users] On the usa... Edoardo alinovi
- Re: [petsc-users] On the usa... Barry Smith
- Re: [petsc-users] On the usa... Edoardo alinovi
- Re: [petsc-users] On the usa... Edoardo alinovi
- Re: [petsc-users] On the usa... Matthew Knepley
- Re: [petsc-users] On the usa... Edoardo alinovi