[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 |
|
---|
[11933] | 19 | #include "../../c/include/globals.h"
|
---|
[3913] | 20 | #include "../../c/modules/modules.h"
|
---|
[4236] | 21 | #include "../../c/Container/Container.h"
|
---|
[3712] | 22 | #include "../../c/shared/shared.h"
|
---|
[13749] | 23 | #include "../bindings.h"
|
---|
[13243] | 24 | #include "../../c/io/io.h"
|
---|
[3354] | 25 |
|
---|
| 26 | #undef __FUNCT__
|
---|
| 27 | #define __FUNCT__ "BamgConvertMesh"
|
---|
| 28 |
|
---|
[13214] | 29 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[3354] | 30 | /* serial input macros: */
|
---|
| 31 | #define INDEXHANDLE prhs[0]
|
---|
[13235] | 32 | #define XHANDLE prhs[1]
|
---|
| 33 | #define YHANDLE prhs[2]
|
---|
[3354] | 34 | /* serial output macros: */
|
---|
| 35 | #define BAMGMESHOUT (mxArray**)&plhs[0]
|
---|
| 36 | #define BAMGGEOMOUT (mxArray**)&plhs[1]
|
---|
[13214] | 37 | #endif
|
---|
[3354] | 38 |
|
---|
[13235] | 39 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
| 40 | /* serial input macros: */
|
---|
| 41 | #define INDEXHANDLE PyTuple_GetItem(args,0)
|
---|
| 42 | #define XHANDLE PyTuple_GetItem(args,1)
|
---|
| 43 | #define YHANDLE PyTuple_GetItem(args,2)
|
---|
| 44 | /* serial output macros: */
|
---|
| 45 | #define BAMGMESHOUT output,0
|
---|
| 46 | #define BAMGGEOMOUT output,1
|
---|
| 47 | #endif
|
---|
| 48 |
|
---|
[3354] | 49 | /* serial arg counts: */
|
---|
| 50 | #undef NLHS
|
---|
| 51 | #define NLHS 2
|
---|
| 52 | #undef NRHS
|
---|
| 53 | #define NRHS 3
|
---|
| 54 |
|
---|
| 55 | #endif
|
---|