[3354] | 1 | /*!\file BamgConvertMesh.h
|
---|
| 2 | * \brief: prototype for Data Interpolation mex module.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _BAMGCONVERTMESH_H
|
---|
| 6 | #define _BAMGCONVERTMESH_H
|
---|
| 7 |
|
---|
[13211] | 8 | #ifdef HAVE_CONFIG_H
|
---|
| 9 | #include <config.h>
|
---|
| 10 | #else
|
---|
| 11 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
| 12 | #endif
|
---|
| 13 |
|
---|
[13213] | 14 | /*For python modules: needs to come before header files inclusion*/
|
---|
| 15 | #ifdef _HAVE_PYTHON_
|
---|
| 16 | #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
|
---|
| 17 | #endif
|
---|
| 18 |
|
---|
[14776] | 19 | #include "../bindings.h"
|
---|
[14948] | 20 | #include "../../c/main/globals.h"
|
---|
[3913] | 21 | #include "../../c/modules/modules.h"
|
---|
[3712] | 22 | #include "../../c/shared/shared.h"
|
---|
[14950] | 23 | #include "../../c/shared/io/io.h"
|
---|
[3354] | 24 |
|
---|
| 25 | #undef __FUNCT__
|
---|
| 26 | #define __FUNCT__ "BamgConvertMesh"
|
---|
| 27 |
|
---|
[13214] | 28 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[3354] | 29 | /* serial input macros: */
|
---|
| 30 | #define INDEXHANDLE prhs[0]
|
---|
[13235] | 31 | #define XHANDLE prhs[1]
|
---|
| 32 | #define YHANDLE prhs[2]
|
---|
[3354] | 33 | /* serial output macros: */
|
---|
| 34 | #define BAMGMESHOUT (mxArray**)&plhs[0]
|
---|
| 35 | #define BAMGGEOMOUT (mxArray**)&plhs[1]
|
---|
[13214] | 36 | #endif
|
---|
[3354] | 37 |
|
---|
[13235] | 38 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
| 39 | /* serial input macros: */
|
---|
| 40 | #define INDEXHANDLE PyTuple_GetItem(args,0)
|
---|
| 41 | #define XHANDLE PyTuple_GetItem(args,1)
|
---|
| 42 | #define YHANDLE PyTuple_GetItem(args,2)
|
---|
| 43 | /* serial output macros: */
|
---|
| 44 | #define BAMGMESHOUT output,0
|
---|
| 45 | #define BAMGGEOMOUT output,1
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
[3354] | 48 | /* serial arg counts: */
|
---|
| 49 | #undef NLHS
|
---|
| 50 | #define NLHS 2
|
---|
| 51 | #undef NRHS
|
---|
| 52 | #define NRHS 3
|
---|
| 53 |
|
---|
| 54 | #endif
|
---|