Last change
on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13393
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10205] | 1 | /*!\file BamgTriangulate.h
|
---|
| 2 | * \brief: prototype for Data Interpolation mex module.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _BAMGTRIANGULATE_H
|
---|
| 6 | #define _BAMGTRIANGULATE_H
|
---|
| 7 |
|
---|
[13395] | 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
|
---|
[10205] | 13 |
|
---|
[13395] | 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"
|
---|
[10205] | 20 | #include "../../c/modules/modules.h"
|
---|
| 21 | #include "../../c/Container/Container.h"
|
---|
| 22 | #include "../../c/shared/shared.h"
|
---|
[12013] | 23 | #include "../../c/issm-binding.h"
|
---|
[10205] | 24 |
|
---|
| 25 | #undef __FUNCT__
|
---|
| 26 | #define __FUNCT__ "BamgTriangulate"
|
---|
| 27 |
|
---|
[13395] | 28 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[10205] | 29 | /* serial input macros: */
|
---|
| 30 | #define XHANDLE prhs[0]
|
---|
| 31 | #define YHANDLE prhs[1]
|
---|
| 32 |
|
---|
| 33 | /* serial output macros: */
|
---|
| 34 | #define INDEX (mxArray**)&plhs[0]
|
---|
[13395] | 35 | #endif
|
---|
[10205] | 36 |
|
---|
[13395] | 37 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
| 38 | /* serial input macros: */
|
---|
| 39 | #define XHANDLE PyTuple_GetItem(args,0)
|
---|
| 40 | #define YHANDLE PyTuple_GetItem(args,1)
|
---|
| 41 |
|
---|
| 42 | /* serial output macros: */
|
---|
| 43 | #define INDEX output,0
|
---|
| 44 | #endif
|
---|
| 45 |
|
---|
[10205] | 46 | /* serial arg counts: */
|
---|
| 47 | #undef NLHS
|
---|
| 48 | #define NLHS 1
|
---|
| 49 | #undef NRHS
|
---|
| 50 | #define NRHS 2
|
---|
| 51 |
|
---|
| 52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.