Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Jed Brown
Barry Smith writes: >> We already have the generated ftn-auto-interfaces/*. h90. The INTERFACE keyword could be replaced with CONTAINS (making these definitions instead of just interfaces), and then the bodies ZjQcmQRYFpfptBannerStart This Message Is From an External

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Barry Smith
> On Mar 21, 2024, at 6:35 PM, Jed Brown wrote: > > Barry Smith writes: > >> In my limited understanding of the Fortran iso_c_binding, if we do not >> provide an equivalent Fortran stub (the user calls) that uses the >> iso_c_binding to call PETSc C code, then when the user calls PETSc C

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Martin Diehl
On Thu, 2024-03-21 at 16:35 -0600, Jed Brown wrote: > Barry Smith writes: > > > In my limited understanding of the Fortran iso_c_binding, if we do > > not provide an equivalent Fortran stub (the user calls) that uses > > the iso_c_binding to call PETSc C code, then when the user calls > > PETSc

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Martin Diehl
Dear Barry, all, pls find my comments below. On Thu, 2024-03-21 at 13:19 -0400, Barry Smith wrote: > >    Martin, > >     Thanks for the suggestions and offer. > >     The tool we use for automatically generating the Fortran stubs > and interfaces is bfort. > > Its limitations include

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Jed Brown
Barry Smith writes: > In my limited understanding of the Fortran iso_c_binding, if we do not provide an equivalent Fortran stub (the user calls) that uses the iso_c_binding to call PETSc C code, then when the user ZjQcmQRYFpfptBannerStart This Message Is From an

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Barry Smith
> On Mar 21, 2024, at 5: 19 PM, Jed Brown wrote: > > Barry Smith writes: > >> We've always had some tension between adding new features to bfort vs developing an entirely new ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Jed Brown
Barry Smith writes: > We've always had some tension between adding new features to bfort vs developing an entirely new tool (for example in Python (maybe calling a little LLVM to help parse the C function), for maybe ZjQcmQRYFpfptBannerStart This Message Is From an

Re: [petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Barry Smith
Martin, Thanks for the suggestions and offer. The tool we use for automatically generating the Fortran stubs and interfaces is bfort. Its limitations include that it cannot handle string arguments automatically and cannot generate more than ZjQcmQRYFpfptBannerStart

[petsc-users] Fortran interfaces: Google Summer of Code project?

2024-03-21 Thread Martin Diehl
Dear PETSc team, I've worked on Fortran interfaces (see https://gitlab.com/petsc/petsc/-/issues/1540) but could not get far in the time I could afford. In discussion with Javier (in CC) the idea came up to propose to offer the work on Fortran interfaces for PETSc as a Google Summer of Code

Re: [petsc-users] Using PetscPartitioner on WINDOWS

2024-03-21 Thread Satish Balay via petsc-users
Checking for program /usr/bin/git...not found Checking for program /cygdrive/c/Users/Akun/AppData/Local/Programs/Git/bin/git...found Also you appear to not use 'cygwin git' I'm not sure if this alternative git would work or break - so either install/use cygwin git - or use tarballs.

Re: [petsc-users] Using PetscPartitioner on WINDOWS

2024-03-21 Thread Satish Balay via petsc-users
Delete your old build files - and retry. i.e rm -rf /cygdrive/g/mypetsc/petsc-3.20.5/arch-mswin-c-opt ./configure Satish On Thu, 21 Mar 2024, 程奔 wrote: > Hi, Satish Thanks for your reply, I try both way your said in petsc-3. 20. 5 > but it encounter same question, >