Re: [petsc-users] missing routines in the Fortran interfaces

2025-06-23 Thread Barry Smith
VecSetValue should now have an interface (generated automatically in the main branch), I'll check the others. BTW: Since you are working on this you should switch to the main branch (until the next release), we are busying with a Summer of Code project improving the Fortran bindings an

[petsc-users] Fortran, KSPMonitorSet, and KSPMonitorTrueResidual

2025-06-23 Thread Randall Mackie
In previous versions of PETSc we use to be able to call KSPMonitorTrueResidual from within our custom KSPMonitor, using an approach that is now commented out in the example found at https://petsc.org/release/src/ksp/ksp/tutorials/ex2f.F90.html:! 214: ! Cannot also use the default KSP monitor ro

[petsc-users] missing routines in the Fortran interfaces

2025-06-23 Thread Randall Mackie
After discovery of the implicit none (type, external) statement for disabling implicit procedures (thanks to Barry for the suggestion), I used that in my code to good effect. However, it also showed that were some routines I call that did not have explicit Fortran interfaces, and maybe they exi

Re: [petsc-users] Problem with composite DM index sets

2025-06-23 Thread Randall Mackie
Hi Barry, That was a good question, and I didn’t know the answer but I did a little digging, and in fact, in the 2018 Fortran standard, an extended form of implicit none was introduced that disable also implicit procedures: implicit none (type, external) Indeed, when adding that to the little