source: issm/trunk-jpl/src/modules/ContourToNodes/ContourToNodes.h@ 13235

Last change on this file since 13235 was 13235, checked in by Mathieu Morlighem, 13 years ago

CHG: preparing header files for python inclusion

File size: 1.3 KB
RevLine 
[1103]1/*
2 ContourToNodes.h
3*/
4
5#ifndef _CONTOURTONODES_H
6#define _CONTOURTONODES_H
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
[1103]19/* local prototypes: */
20void ContourToNodesUsage(void);
21
[11933]22#include "../../c/include/globals.h"
[3913]23#include "../../c/modules/modules.h"
[4236]24#include "../../c/Container/Container.h"
[3712]25#include "../../c/shared/shared.h"
[12013]26#include "../../c/issm-binding.h"
[1103]27
28#undef __FUNCT__
29#define __FUNCT__ "ContourToNodes"
30
[13214]31#ifdef _HAVE_MATLAB_MODULES_
[1103]32/* input macros: */
[13235]33#define XHANDLE prhs[0]
34#define YHANDLE prhs[1]
35#define FILENAME prhs[2]
[1103]36#define EDGEVALUEHANDLE prhs[3]
37
38/* serial output macros: */
39#define FLAGS (mxArray**)&plhs[0]
[13214]40#endif
[1103]41
[13235]42#ifdef _HAVE_PYTHON_MODULES_
43/* input macros: */
44#define XHANDLE PyTuple_GetItem(args,0)
45#define YHANDLE PyTuple_GetItem(args,1)
46#define FILENAME PyTuple_GetItem(args,2)
47#define EDGEVALUEHANDLE PyTuple_GetItem(args,3)
48
49/* serial output macros: */
50#define FLAGS output,0
51#endif
52
[1103]53/* serial arg counts: */
54#undef NLHS
[3249]55#define NLHS 1
[1103]56#undef NRHS
57#define NRHS 4
58
59#endif /* _CONTOURTONODES_H */
60
Note: See TracBrowser for help on using the repository browser.