source: issm/trunk-jpl/src/modules/TriaSearch/TriaSearch.h@ 13236

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
Line 
1/*!\file TriaSearch.h
2 */
3
4#ifndef _TRIASEARCH_H
5#define _TRIASEARCH_H
6
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
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
18#include "../../c/include/globals.h"
19#include "../../c/modules/modules.h"
20#include "../../c/Container/Container.h"
21#include "../../c/shared/shared.h"
22#include "../../c/issm-binding.h"
23
24#undef __FUNCT__
25#define __FUNCT__ "TriaSearch"
26
27#ifdef _HAVE_MATLAB_MODULES_
28/* serial input macros: */
29#define INDEXHANDLE prhs[0]
30#define XHANDLE prhs[1]
31#define YHANDLE prhs[2]
32#define X0HANDLE prhs[3]
33#define Y0HANDLE prhs[4]
34
35/* serial output macros: */
36#define TRIA (mxArray**)&plhs[0]
37#endif
38
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
51/* serial arg counts: */
52#undef NLHS
53#define NLHS 1
54#undef NRHS
55#define NRHS 5
56
57#endif
Note: See TracBrowser for help on using the repository browser.