Ice Sheet System Model  4.18
Code documentation
ExpToLevelSet.h
Go to the documentation of this file.
1 /*
2  ExpToLevelSet.h
3 */
4 
5 #ifndef _EXPTOLEVELSET_H
6 #define _EXPTOLEVELSET_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 /*Header files: */
20 #include "../bindings.h"
21 #include "../../c/main/globals.h"
22 #include "../../c/toolkits/toolkits.h"
23 #include "../../c/modules/modules.h"
24 #include "../../c/shared/shared.h"
25 #include "../../c/shared/io/io.h"
26 
27 #undef __FUNCT__
28 #define __FUNCT__ "ExpToLevelSet"
29 
30 #ifdef _HAVE_MATLAB_MODULES_
31 /* serial input macros: */
32 #define X prhs[0]
33 #define Y prhs[1]
34 #define CONTOUR prhs[2]
35 
36 /* serial output macros: */
37 #define PLHS0 (mxArray**)&plhs[0]
38 #endif
39 
40 #ifdef _HAVE_PYTHON_MODULES_
41 /* serial input macros: */
42 #define X PyTuple_GetItem(args,0)
43 #define Y PyTuple_GetItem(args,1)
44 #define CONTOUR PyTuple_GetItem(args,2)
45 /* serial output macros: */
46 #define PLHS0 output,0
47 #endif
48 
49 /* serial arg counts: */
50 #undef NLHS
51 #define NLHS 1
52 #undef NRHS
53 #define NRHS 3
54 
55 #endif /* _EXPTOLEVELSET_H */