[petsc-users] Missing Fortran interface for PCFieldSplitSetIS and PCFieldSplitGetIS?

Smith, Barry F. bsmith at mcs.anl.gov
Wed Feb 6 22:18:52 CST 2019


   Marco,
   We were missing a Fortran stub in the code. You can either apply the attached patch or use the git branch barry/add-pcfieldsplit-getis/maint for the missing functionality. The fix will also be in the next maintenance release of petsc-3.10

   Please let us know if there are any difficulties.

   Barry


> On Feb 6, 2019, at 9:56 AM, Marco Tiberga via petsc-users <petsc-users at mcs.anl.gov> wrote:
>
> Dear PETSc developers,
>
> I am developing a coupled solver for the incompressible Navier-Stokes equations, based on the PCFIELDSPLIT implemented in PETSc (I’m using version 3.10.1).
> My code is written in Fortran.
>
> I tried to follow as much as possible this example, but I am getting weird errors. I think the problem is in the call to PCFieldSplitSetIS.
> To debug the code, for each field I wanted to call PCFieldSplitGetIS (after setting it) and print the IS with ISView. However, the compiler says the reference to PCFieldSplitGetIS is undefined.
>
> So, I was wondering whether PCFieldSplitGetIS and PCFieldSplitSetIS are actually available for Fortran.
> I tried to had a look at petsc-3.10.1/src/ksp/f90-mod/ftn-auto-interfaces/petscpc.h90, but I cannot find the interfaces for these functions.
>
> Thanks for the clarification.
>
> Best regards,
>
> Marco Tiberga
> PhD candidate
> Delft University of Technology
> Faculty of Applied Sciences
> Radiation Science & Technology Department
> Mekelweg 15, 2629 JB Delft, The Netherlands
> E-Mail: m.tiberga at tudelft.nl
> Website: http://www.nera.rst.tudelft.nl/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190207/88abf3c8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-pcfieldsplit-getis.patch
Type: application/octet-stream
Size: 2993 bytes
Desc: add-pcfieldsplit-getis.patch
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190207/88abf3c8/attachment.obj>


More information about the petsc-users mailing list