Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread Mark Adams via petsc-users
] > > Sent: Friday, May 17, 2019 9:15 AM > > To: Mark Adams > > Cc: William Coirier; petsc-users@mcs.anl.gov; Michael Robinson; Andrew > Holm > > Subject: Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation... > > > > I don't understand. For BAIJ and SBAIJ i

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread William Coirier via petsc-users
@mcs.anl.gov; Michael Robinson; Andrew Holm Subject: Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation... I don't understand. For BAIJ and SBAIJ it is the number of block nonzeros in the two parts of the matrix. It is not the number of nonzeros per row. For Mat[MPI]AIJSetPreallocation() it is the n

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread Smith, Barry F. via petsc-users
ssor or the number of block rows? > > From: Smith, Barry F. [bsm...@mcs.anl.gov] > Sent: Friday, May 17, 2019 9:15 AM > To: Mark Adams > Cc: William Coirier; petsc-users@mcs.anl.gov; Michael Robinson; Andrew Holm > Subject: Re: [petsc-us

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread Smith, Barry F. via petsc-users
I don't understand. For BAIJ and SBAIJ it is the number of block nonzeros in the two parts of the matrix. It is not the number of nonzeros per row. For Mat[MPI]AIJSetPreallocation() it is the number of nonzeros (even if a block size has been set) because for AIJ matrices the block size does n

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread Mark Adams via petsc-users
On Thu, May 16, 2019 at 6:28 PM William Coirier via petsc-users < petsc-users@mcs.anl.gov> wrote: > Ok, got it. My misinterpretation was how to fill the d_nnz and o_nnz > arrays. > > Thank you for your help! > > Might I make a suggestion related to the documentation? Perhaps I have not > fully rea

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-17 Thread Smith, Barry F. via petsc-users
From: Smith, Barry F. [bsm...@mcs.anl.gov] > Sent: Thursday, May 16, 2019 4:07 PM > To: William Coirier > Cc: petsc-users@mcs.anl.gov; Michael Robinson; Andrew Holm > Subject: Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation... > >> On May 16, 2019, at 3:44 PM, William Coiri

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-16 Thread William Coirier via petsc-users
liam Coirier Cc: petsc-users@mcs.anl.gov; Michael Robinson; Andrew Holm Subject: Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation... > On May 16, 2019, at 3:44 PM, William Coirier via petsc-users > wrote: > > Folks: > > I'm developing an application using the SNES, and

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-16 Thread William Coirier via petsc-users
.gov] Sent: Thursday, May 16, 2019 4:07 PM To: William Coirier Cc: petsc-users@mcs.anl.gov; Michael Robinson; Andrew Holm Subject: Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation... > On May 16, 2019, at 3:44 PM, William Coirier via petsc-users > wrote: > > Folks: > > I'

Re: [petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-16 Thread Smith, Barry F. via petsc-users
> On May 16, 2019, at 3:44 PM, William Coirier via petsc-users > wrote: > > Folks: > > I'm developing an application using the SNES, and overall it's working great, > as many of our other PETSc-based projects. But, I'm having a problem related > to (presumably) pre-allocation, block matric

[petsc-users] MatCreateBAIJ, SNES, Preallocation...

2019-05-16 Thread William Coirier via petsc-users
Folks: I'm developing an application using the SNES, and overall it's working great, as many of our other PETSc-based projects. But, I'm having a problem related to (presumably) pre-allocation, block matrices and SNES. Without going into details about the actual problem we are solving, here are