Actual source code: petscmatlab.h

      1: /*
      2:     Defines an interface to the Matlab Engine from PETSc
      3: */

     11: /*S
     12:      PetscMatlabEngine - Object used to communicate with Matlab

     14:    Level: intermediate

     16: .seealso:  PetscMatlabEngineCreate(), PetscMatlabEngineDestroy(), PetscMatlabEngineEvaluate(),
     17:            PetscMatlabEngineGetOutput(), PetscMatlabEnginePut(), PetscMatlabEngineGet(),
     18:            PetscMatlabEnginePrintOutput(), PetscMatlabEnginePutArray(), PetscMatlabEngineGetArray(),
     19:            PETSC_MATLAB_ENGINE_(), PETSC_MATLAB_ENGINE_SELF, PETSC_MATLAB_ENGINE_WORLD
     20: S*/
     21: typedef struct _p_PetscMatlabEngine* PetscMatlabEngine;

     23: EXTERN PetscErrorCode  PetscMatlabEngineCreate(MPI_Comm,const char[],PetscMatlabEngine*);
     24: EXTERN PetscErrorCode  PetscMatlabEngineDestroy(PetscMatlabEngine);
     25: EXTERN PetscErrorCode  PetscMatlabEngineEvaluate(PetscMatlabEngine,const char[],...);
     26: EXTERN PetscErrorCode  PetscMatlabEngineGetOutput(PetscMatlabEngine,char **);
     27: EXTERN PetscErrorCode  PetscMatlabEnginePrintOutput(PetscMatlabEngine,FILE*);
     28: EXTERN PetscErrorCode  PetscMatlabEnginePut(PetscMatlabEngine,PetscObject);
     29: EXTERN PetscErrorCode  PetscMatlabEngineGet(PetscMatlabEngine,PetscObject);
     30: EXTERN PetscErrorCode  PetscMatlabEnginePutArray(PetscMatlabEngine,int,int,PetscScalar*,const char[]);
     31: EXTERN PetscErrorCode  PetscMatlabEngineGetArray(PetscMatlabEngine,int,int,PetscScalar*,const char[]);

     33: EXTERN PetscMatlabEngine  PETSC_MATLAB_ENGINE_(MPI_Comm);

     35: /*MC
     36:   PETSC_MATLAB_ENGINE_WORLD - same as PETSC_MATLAB_ENGINE_(PETSC_COMM_WORLD)

     38:   Level: developer
     39: M*/
     40: #define PETSC_MATLAB_ENGINE_WORLD PETSC_MATLAB_ENGINE_(PETSC_COMM_WORLD)

     42: /*MC
     43:   PETSC_MATLAB_ENGINE_SELF - same as PETSC_MATLAB_ENGINE_(PETSC_COMM_SELF)

     45:   Level: developer
     46: M*/
     47: #define PETSC_MATLAB_ENGINE_SELF  PETSC_MATLAB_ENGINE_(PETSC_COMM_SELF)

     50: #endif