source: issm/trunk-jpl/src/wrappers/BamgConvertMesh/BamgConvertMesh.h@ 13830

Last change on this file since 13830 was 13749, checked in by Mathieu Morlighem, 12 years ago

CHG: moved all matlab and python code from src/c/ to src/wrappers

File size: 1.3 KB
Line 
1/*!\file BamgConvertMesh.h
2 * \brief: prototype for Data Interpolation mex module.
3 */
4
5#ifndef _BAMGCONVERTMESH_H
6#define _BAMGCONVERTMESH_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 "../bindings.h"
24#include "../../c/io/io.h"
25
26#undef __FUNCT__
27#define __FUNCT__ "BamgConvertMesh"
28
29#ifdef _HAVE_MATLAB_MODULES_
30/* serial input macros: */
31#define INDEXHANDLE prhs[0]
32#define XHANDLE prhs[1]
33#define YHANDLE prhs[2]
34/* serial output macros: */
35#define BAMGMESHOUT (mxArray**)&plhs[0]
36#define BAMGGEOMOUT (mxArray**)&plhs[1]
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/* serial output macros: */
45#define BAMGMESHOUT output,0
46#define BAMGGEOMOUT output,1
47#endif
48
49/* serial arg counts: */
50#undef NLHS
51#define NLHS 2
52#undef NRHS
53#define NRHS 3
54
55#endif
Note: See TracBrowser for help on using the repository browser.