1 | /*!\file: TriMeshRifts.h
|
---|
2 | * \brief header prototype
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _TRIMESHRIFTS_H_
|
---|
6 | #define _TRIMESHRIFTS_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 | /*Very important definition in case we are compiling a python module!: 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 "../../c/include/globals.h"
|
---|
21 | #include "../../c/toolkits/toolkits.h"
|
---|
22 | #include "../../c/include/include.h"
|
---|
23 | #include "../../c/modules/modules.h"
|
---|
24 | #include "../../c/Container/Container.h"
|
---|
25 | #include "../../c/shared/shared.h"
|
---|
26 | #include "../../c/issm-binding.h"
|
---|
27 | #include "../../c/io/io.h"
|
---|
28 | #include "../../c/EnumDefinitions/EnumDefinitions.h"
|
---|
29 |
|
---|
30 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
31 | /* serial input macros: */
|
---|
32 | #define DOMAINOUTLINE (mxArray *)prhs[0]
|
---|
33 | #define RIFTSOUTLINE (mxArray *)prhs[1]
|
---|
34 | #define AREA (mxArray *)prhs[2]
|
---|
35 | #define ORDER (mxArray *)prhs[3]
|
---|
36 | /* serial output macros: */
|
---|
37 | #define INDEX (mxArray**)&plhs[0]
|
---|
38 | #define X (mxArray**)&plhs[1]
|
---|
39 | #define Y (mxArray**)&plhs[2]
|
---|
40 | #define SEGMENTS (mxArray**)&plhs[3]
|
---|
41 | #define SEGMENTMARKERLIST (mxArray**)&plhs[4]
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
45 | /* serial input macros: */
|
---|
46 | #define DOMAINOUTLINE PyTuple_GetItem(args,0)
|
---|
47 | #define RIFTSOUTLINE PyTuple_GetItem(args,1)
|
---|
48 | #define AREA PyTuple_GetItem(args,2)
|
---|
49 | #define ORDER PyTuple_GetItem(args,3)
|
---|
50 | /* serial output macros: */
|
---|
51 | #define INDEX output,0
|
---|
52 | #define X output,1
|
---|
53 | #define Y output,2
|
---|
54 | #define SEGMENTS output,3
|
---|
55 | #define SEGMENTMARKERLIST output,4
|
---|
56 | #endif
|
---|
57 |
|
---|
58 | #undef __FUNCT__
|
---|
59 | #define __FUNCT__ "TriMeshRifts"
|
---|
60 |
|
---|
61 | /* serial arg counts: */
|
---|
62 | #undef NLHS
|
---|
63 | #define NLHS 5
|
---|
64 | #undef NRHS
|
---|
65 | #define NRHS 4
|
---|
66 |
|
---|
67 | /* local prototypes: */
|
---|
68 | void TriMeshRiftsUsage(void);
|
---|
69 |
|
---|
70 | #endif /* _TRIMESHRIFTS_H_*/
|
---|