[petsc-users] PCMGSetResidual and fortran

2022-11-04 Thread Steven Dargaville
Hi all I have a quick question regarding the use of PCMGSetResidual within fortran code. I'm calling PCMGSetResidual from within fortran: call PCMGSetResidual(pc_mg, petsc_level, mg_residual, coarse_matrix ierr) and just for testing purposes I've written a trivial residual evaluation routine:

Re: [petsc-users] MatGetDiagonalBlock and shell matrices

2016-08-29 Thread Steven Dargaville
HI all Thanks for this Barry, the branch you've made seems to be working perfectly. Do you think this change will make it into a future PETSc release? I can imagine this would be very useful for a number of people. Thanks Steven On Sat, Aug 27, 2016 at 11:02 PM, Jed Brown

Re: [petsc-users] MatGetDiagonalBlock and shell matrices

2016-08-26 Thread Steven Dargaville
that routine directly from fortran? Thanks Steven On Fri, Aug 26, 2016 at 1:35 PM, Dave May <dave.mayhe...@gmail.com> wrote: > > > On 26 August 2016 at 14:34, Dave May <dave.mayhe...@gmail.com> wrote: > >> >> >> On 26 August 2016 at 14:14, Steven Dargavil

[petsc-users] MatGetDiagonalBlock and shell matrices

2016-08-26 Thread Steven Dargaville
Hi all I'm just wondering if there is any plans in the future for MatGetDiagonalBlock to support shell matrices by registering a user-implemented MATOP? MatGetDiagonal supports MATOP, but the block version of this does not. I found a previous query on the user list which touched on this and