Last change
on this file since 13236 was 13236, checked in by Mathieu Morlighem, 13 years ago |
CHG: preparing files for python inclusion
|
File size:
1.2 KB
|
Rev | Line | |
---|
[5354] | 1 | /*!\file TriaSearch.h
|
---|
[1172] | 2 | */
|
---|
| 3 |
|
---|
[5354] | 4 | #ifndef _TRIASEARCH_H
|
---|
| 5 | #define _TRIASEARCH_H
|
---|
[1172] | 6 |
|
---|
[13211] | 7 | #ifdef HAVE_CONFIG_H
|
---|
| 8 | #include <config.h>
|
---|
| 9 | #else
|
---|
| 10 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
| 11 | #endif
|
---|
| 12 |
|
---|
[13213] | 13 | /*For python modules: needs to come before header files inclusion*/
|
---|
| 14 | #ifdef _HAVE_PYTHON_
|
---|
| 15 | #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
[11933] | 18 | #include "../../c/include/globals.h"
|
---|
[3913] | 19 | #include "../../c/modules/modules.h"
|
---|
[4236] | 20 | #include "../../c/Container/Container.h"
|
---|
[3712] | 21 | #include "../../c/shared/shared.h"
|
---|
[12013] | 22 | #include "../../c/issm-binding.h"
|
---|
[1172] | 23 |
|
---|
| 24 | #undef __FUNCT__
|
---|
[5354] | 25 | #define __FUNCT__ "TriaSearch"
|
---|
[1172] | 26 |
|
---|
[13214] | 27 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[1172] | 28 | /* serial input macros: */
|
---|
| 29 | #define INDEXHANDLE prhs[0]
|
---|
[13235] | 30 | #define XHANDLE prhs[1]
|
---|
| 31 | #define YHANDLE prhs[2]
|
---|
| 32 | #define X0HANDLE prhs[3]
|
---|
| 33 | #define Y0HANDLE prhs[4]
|
---|
[1172] | 34 |
|
---|
| 35 | /* serial output macros: */
|
---|
[5354] | 36 | #define TRIA (mxArray**)&plhs[0]
|
---|
[13214] | 37 | #endif
|
---|
[1172] | 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 | #define X0HANDLE PyTuple _GetItem(args,3)
|
---|
| 45 | #define Y0HANDLE PyTuple _GetItem(args,4)
|
---|
| 46 |
|
---|
| 47 | /* serial output macros: */
|
---|
| 48 | #define TRIA output,0
|
---|
| 49 | #endif
|
---|
| 50 |
|
---|
[1172] | 51 | /* serial arg counts: */
|
---|
| 52 | #undef NLHS
|
---|
| 53 | #define NLHS 1
|
---|
[5354] | 54 | #undef NRHS
|
---|
| 55 | #define NRHS 5
|
---|
| 56 |
|
---|
[3128] | 57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.