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 PETSC_DLLEXPORT PetscMatlabEngineCreate(MPI_Comm,const char[],PetscMatlabEngine*);
     24: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEngineDestroy(PetscMatlabEngine);
     25: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEngineEvaluate(PetscMatlabEngine,const char[],...);
     26: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEngineGetOutput(PetscMatlabEngine,char **);
     27: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEnginePrintOutput(PetscMatlabEngine,FILE*);
     28: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEnginePut(PetscMatlabEngine,PetscObject);
     29: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEngineGet(PetscMatlabEngine,PetscObject);
     30: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEnginePutArray(PetscMatlabEngine,int,int,PetscScalar*,const char[]);
     31: EXTERN PetscErrorCode PETSC_DLLEXPORT PetscMatlabEngineGetArray(PetscMatlabEngine,int,int,PetscScalar*,const char[]);

     33: EXTERN PetscMatlabEngine PETSC_DLLEXPORT 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