Actual source code: zmatlabf.c

      1: #include <petsc/private/ftnimpl.h>
      2: #include <petscmatlab.h>

      4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
      5:   #define petscmatlabengineevaluate_ PETSCMATLABENGINEEVALUATE
      6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
      7:   #define petscmatlabengineevaluate_ petscmatlabengineevaluate
      8: #endif

     10: PETSC_EXTERN void petscmatlabengineevaluate_(PetscMatlabEngine *e, char *m, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len)
     11: {
     12:   char *ms;
     13:   FIXCHAR(m, len, ms);
     14:   *ierr = PetscMatlabEngineEvaluate(*e, ms);
     15:   if (*ierr) return;
     16:   FREECHAR(m, ms);
     17: }