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

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

CHG: integrated Container/ directory into src/c/classes/objects directory. No reason to have the containers
and the objects that they contain defined in different places.

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