source: MML/trunk/at/simulator/element/user/elempass.h @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 1.0 KB
Line 
1/* Header file for the element pass-functions */
2
3#if defined(PCWIN)
4#define ExportMode __declspec(dllexport)
5#include <float.h>
6#elif defined(GLNX86)
7#define ExportMode
8#elif defined(ALPHA)
9#define ExportMode
10#elif defined(SOL2)
11#define ExportMode
12#elif defined(MACI64) /* added by LSN for MAC Snow Leopard */
13#define ExportMode
14#else
15/* Default - Windows */
16#define ExportMode __declspec(dllexport)
17#endif
18
19
20ExportMode int* passFunction(const mxArray *ElemData, int *FieldNumbers,
21                                double *r_in, int num_particles, int mode);
22
23
24#define NO_LOCAL_COPY           0       /* function retieves element data from MATLAB workspace
25                                                                   each time it is called and reterns NULL pointer
26                                                                */
27
28#define MAKE_LOCAL_COPY         1       /* function retieves element data from MATLAB workspace
29                                                                   allocates memory and makes a persistent local copy
30                                                                   of the fields it uses for use on subsequent calls.
31                                                                   Returns a pointer to that structure
32                                */
33
34#define USE_LOCAL_COPY          2  /*  Uses the previously stored local copy of the element data */
35
Note: See TracBrowser for help on using the repository browser.