Re: [petsc-users] PCMGSetResidual and fortran

2022-11-04 Thread Barry Smith
Steven, Could you please send your test code. It is possible there is a bug in our Fortran interface since we do not test it for this functionality. Barry > On Nov 4, 2022, at 10:50 AM, Steven Dargaville > wrote: > > Hi all > > I have a quick question regarding the use of

[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: