source: issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.h@ 14948

Last change on this file since 14948 was 14948, checked in by Eric.Larour, 12 years ago

CHG: moved globals.h into src/c/main, where it makes more sense, as it's only used to build wrappers or the main issm.exe and krigging.exe

File size: 1.5 KB
Line 
1/*!\file InterpFromGridToMesh.h
2 * \brief: prototype for Data Interpolation mex module.
3 */
4
5#ifndef _InterpFromGridToMesh_H
6#define _InterpFromGridToMesh_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 "../bindings.h"
20#include "../../c/main/globals.h"
21#include "../../c/modules/modules.h"
22#include "../../c/Container/Container.h"
23#include "../../c/shared/shared.h"
24
25#undef __FUNCT__
26#define __FUNCT__ "InterpFromGridToMesh"
27
28#ifdef _HAVE_MATLAB_MODULES_
29/* serial input macros: */
30#define XHANDLE prhs[0]
31#define YHANDLE prhs[1]
32#define DATAHANDLE prhs[2]
33#define XMESHHANDLE prhs[3]
34#define YMESHHANDLE prhs[4]
35#define DEFAULTHANDLE prhs[5]
36#define INTERPENUM prhs[6]
37/* serial output macros: */
38#define DATAMESH (mxArray**)&plhs[0]
39#endif
40
41#ifdef _HAVE_PYTHON_MODULES_
42/* serial input macros: */
43#define XHANDLE PyTuple_GetItem(args,0)
44#define YHANDLE PyTuple_GetItem(args,1)
45#define DATAHANDLE PyTuple_GetItem(args,2)
46#define XMESHHANDLE PyTuple_GetItem(args,3)
47#define YMESHHANDLE PyTuple_GetItem(args,4)
48#define DEFAULTHANDLE PyTuple_GetItem(args,5)
49#define INTERPENUM PyTuple_GetItem(args,6)
50/* serial output macros: */
51#define DATAMESH output,0
52#endif
53
54/* serial arg counts: */
55#undef NLHS
56#define NLHS 1
57#undef NRHS
58#define NRHS 6
59
60#endif /* _INTERPFROMGRIDTOMESH_H */
Note: See TracBrowser for help on using the repository browser.