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