Rev | Line | |
---|
[1103] | 1 | /*
|
---|
| 2 | ContourToNodes.h
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _CONTOURTONODES_H
|
---|
| 6 | #define _CONTOURTONODES_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"
|
---|
[12013] | 23 | #include "../../c/issm-binding.h"
|
---|
[1103] | 24 |
|
---|
| 25 | #undef __FUNCT__
|
---|
| 26 | #define __FUNCT__ "ContourToNodes"
|
---|
| 27 |
|
---|
[13214] | 28 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[1103] | 29 | /* input macros: */
|
---|
[13235] | 30 | #define XHANDLE prhs[0]
|
---|
| 31 | #define YHANDLE prhs[1]
|
---|
[13330] | 32 | #define CONTOURNAME prhs[2]
|
---|
[1103] | 33 | #define EDGEVALUEHANDLE prhs[3]
|
---|
| 34 |
|
---|
| 35 | /* serial output macros: */
|
---|
| 36 | #define FLAGS (mxArray**)&plhs[0]
|
---|
[13214] | 37 | #endif
|
---|
[1103] | 38 |
|
---|
[13235] | 39 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
| 40 | /* input macros: */
|
---|
| 41 | #define XHANDLE PyTuple_GetItem(args,0)
|
---|
| 42 | #define YHANDLE PyTuple_GetItem(args,1)
|
---|
[13330] | 43 | #define CONTOURNAME PyTuple_GetItem(args,2)
|
---|
[13235] | 44 | #define EDGEVALUEHANDLE PyTuple_GetItem(args,3)
|
---|
| 45 |
|
---|
| 46 | /* serial output macros: */
|
---|
| 47 | #define FLAGS output,0
|
---|
| 48 | #endif
|
---|
| 49 |
|
---|
[1103] | 50 | /* serial arg counts: */
|
---|
| 51 | #undef NLHS
|
---|
[3249] | 52 | #define NLHS 1
|
---|
[1103] | 53 | #undef NRHS
|
---|
| 54 | #define NRHS 4
|
---|
| 55 |
|
---|
| 56 | #endif /* _CONTOURTONODES_H */
|
---|
| 57 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.