#include #include <../src/sys/f90-src/f90impl.h> #ifdef PETSC_HAVE_FORTRAN_CAPS #define kspgetresidualhistoryf90_ KSPGETRESIDUALHISTORYF90 #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) #define kspgetresidualhistoryf90_ kspgetresidualhistoryf90 #endif EXTERN_C_BEGIN void PETSC_STDCALL kspgetresidualhistoryf90_(KSP *ksp,F90Array1d *indices,PetscInt *n,int *ierr PETSC_F90_2PTR_PROTO(ptrd)) { PetscReal *hist; *ierr = KSPGetResidualHistory(*ksp,&hist,n); if (*ierr) return; *ierr = F90Array1dCreate(hist,PETSC_DOUBLE,1,*n,indices PETSC_F90_2PTR_PARAM(ptrd)); } EXTERN_C_END