57 #include <sys/types.h>
59 #include <lal/AVFactories.h>
60 #include <lal/LALConfig.h>
61 #include <lal/LALMalloc.h>
62 #include <lal/LALStatusMacros.h>
63 #include <lal/LALStdlib.h>
64 #include <lal/LALMathematica.h>
67 #define LALMATH3DPLOTTESTC_ENORM 0
68 #define LALMATH3DPLOTTESTC_EMEM 1
69 #define LALMATH3DPLOTTESTC_ESUB 2
73 #define LALMATH3DPLOTTESTC_MSGENORM "Normal exit"
74 #define LALMATH3DPLOTTESTC_MSGEMEM "Memory allocation error"
75 #define LALMATH3DPLOTTESTC_MSGESUB "Subroutine error"
89 printf(LALMATH3DPLOTTESTC_MSGEMEM);
94 for(loopx=1; loopx <= 20; loopx++){
95 for(loopy=1; loopy <= 20; loopy++){
96 for(loopz=0; loopz <= 1; loopz++){
104 printf(LALMATH3DPLOTTESTC_MSGEMEM);
111 for(loopx=1; loopx <= 20; loopx++){
112 for(loopy=1; loopy <= 20; loopy++){
120 printf(LALMATH3DPLOTTESTC_MSGEMEM);
127 for(loopx=1; loopx <= 20; loopx++){
128 for(loopy=1; loopy <= 20; loopy++){
129 for(loopz=3; loopz <= 4; loopz++){
130 if( ((loopx==6)||(loopx==19)) && (loopy<16) && (loopy>5))
continue;
131 if((loopy==15)&&(((loopx<20)&&(loopx>14))||((loopx<7)&&(loopx>1))))
continue;
132 if((loopx>9)&&(loopx<12)&&(((loopy>6)&&(loopy<10))||(loopy==12)))
continue;
133 if(((loopx==9)||(loopx==12)) && ((loopy>9)&&(loopy<13)))
continue;
134 if(((loopx==8)||(loopx==13)) && ((loopy>12)&&(loopy<16)))
continue;
142 printf(LALMATH3DPLOTTESTC_MSGEMEM);
151 printf(
"\nCalling LALMath3DPlot()......\n");
156 printf(LALMATH3DPLOTTESTC_MSGESUB);
void REPORTSTATUS(LALStatus *status)
#define LALError(statusptr, statement)
#define LALMATH3DPLOTTESTC_EMEM
Memory allocation error.
#define LALMATH3DPLOTTESTC_ENORM
Normal exit.
#define LALMATH3DPLOTTESTC_ESUB
Subroutine error.
int main(int argc, char *argv[])
int32_t INT4
Four-byte signed integer.
void LALMath3DPlot(LALStatus *stat, Math3DPointList *first, INT4 *ntiles, REAL4 *pointSize)
This function is for plotting 3D template banks by creating a MATHEMATICA notebook.
LAL status structure, see The LALStatus structure for more details.
This type is used by LALMath3DPlot.c as an input structure to plot 3-dimensional template banks.
struct tagMath3DPointList * next