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