Actual source code: zf90snes.c

      2: #include "petscsnes.h"
      3: #include "petscf90.h"

      5: #ifdef PETSC_HAVE_FORTRAN_CAPS
      6: #define snesgetconvergencehistoryf90_     SNESGETCONVERGENCEHISTORYF90
      7: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
      8: #define snesgetconvergencehistoryf90_     snesgetconvergencehistoryf90
      9: #endif

     12: void PETSC_STDCALL snesgetconvergencehistoryf90_(SNES *snes,F90Array1d *r,F90Array1d *fits,int *n,int *ierr)
     13: {
     14:   PetscReal *hist;
     15:   int       *its;
     16:   *SNESGetConvergenceHistory(*snes,&hist,&its,n); if (*ierr) return;
     17:   *F90Array1dCreate(hist,PETSC_DOUBLE,1,*n,r); if (*ierr) return;
     18:   *F90Array1dCreate(its,PETSC_INT,1,*n,fits);
     19: }