|
Last change
on this file since 13236 was 13236, checked in by Mathieu Morlighem, 13 years ago |
|
CHG: preparing files for python inclusion
|
|
File size:
926 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | InternalFront.h
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _INTERNALFRONT_H
|
|---|
| 6 | #define _INTERNALFRONT_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/shared/shared.h"
|
|---|
| 21 | #include "../../c/issm-binding.h"
|
|---|
| 22 | #include "../../c/io/io.h"
|
|---|
| 23 |
|
|---|
| 24 | #undef __FUNCT__
|
|---|
| 25 | #define __FUNCT__ "InternalFront"
|
|---|
| 26 |
|
|---|
| 27 | #ifdef _HAVE_MATLAB_MODULES_
|
|---|
| 28 | /* serial input macros: */
|
|---|
| 29 | #define MODEL prhs[0]
|
|---|
| 30 | /* serial output macros: */
|
|---|
| 31 | #define FRONT (mxArray**)&plhs[0]
|
|---|
| 32 | #endif
|
|---|
| 33 |
|
|---|
| 34 | #ifdef _HAVE_PYTHON_MODULES_
|
|---|
| 35 | /* serial input macros: */
|
|---|
| 36 | #define MODEL PyTuple_GetItem(args,0)
|
|---|
| 37 | /* serial output macros: */
|
|---|
| 38 | #define FRONT output,0]
|
|---|
| 39 | #endif
|
|---|
| 40 |
|
|---|
| 41 | /* serial arg counts: */
|
|---|
| 42 | #undef NLHS
|
|---|
| 43 | #define NLHS 1
|
|---|
| 44 | #undef NRHS
|
|---|
| 45 | #define NRHS 1
|
|---|
| 46 |
|
|---|
| 47 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.