Actual source code: zf90ksp.c

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

  5: #ifdef PETSC_HAVE_FORTRAN_CAPS
  6: #define kspgetresidualhistoryf90_     KSPGETRESIDUALHISTORYF90
  7: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
  8: #define kspgetresidualhistoryf90_     kspgetresidualhistoryf90
  9: #endif

 12: void PETSC_STDCALL kspgetresidualhistoryf90_(KSP *ksp,F90Array1d *indices,int *n,int *ierr)
 13: {
 14:   PetscReal *hist;
 15:   *KSPGetResidualHistory(*ksp,&hist,n); if (*ierr) return;
 16:   *F90Array1dCreate(hist,PETSC_DOUBLE,1,*n,indices);
 17: }