source: MML/trunk/at/simulator/element/elempass.h

Last change on this file was 5, checked in by zhangj, 11 years ago

ThomX MML version on the LAL server @ 17/12/2013

File size: 1.3 KB
Line 
1/* Header file for the element pass-functions
2
3
4Set up for 64 bit linux platform.
5Modified by Jianfeng ZHANG @ LAL, 12/02/2013
6*/
7
8
9
10#if defined(PCWIN)
11#define ExportMode __declspec(dllexport)  /*windows version matlab*/
12#include <float.h>
13#elif defined(GLNX86)    /*32 bit linux version matlab*/
14#define ExportMode
15#elif defined(GLNXA64) /*64 bit linux version matlab, added by Jianfeng Zhang for ubuntu 12.04, Mac Pro. 8.2*/
16#define ExportMode
17#elif defined(ALPHA)
18#define ExportMode
19#elif defined(SOL2)
20#define ExportMode
21#elif defined(MACI64) /* added by L.S. Nadolski for MAC Snow Leopard */
22#define ExportMode
23#else
24/* Default - Windows */
25#define ExportMode __declspec(dllexport)
26#endif
27
28
29ExportMode int* passFunction(const mxArray *ElemData, int *FieldNumbers,
30                                double *r_in, int num_particles, int mode);
31
32
33#define NO_LOCAL_COPY           0       /* function retieves element data from MATLAB workspace
34                                                                   each time it is called and reterns NULL pointer
35                                                                */
36
37#define MAKE_LOCAL_COPY         1       /* function retieves element data from MATLAB workspace
38                                                                   allocates memory and makes a persistent local copy
39                                                                   of the fields it uses for use on subsequent calls.
40                                                                   Returns a pointer to that structure
41                                */
42
43#define USE_LOCAL_COPY          2  /*  Uses the previously stored local copy of the element data */
44
Note: See TracBrowser for help on using the repository browser.