1 /* a wrapper for quick parameter and setup testing
2 *
3 * This should have an option for setting nt, but that
4 * would probably take multiple minutes of work.
5 *
6 * R Reynolds 2014
7 */
8
9 #if defined(__linux__)
10 # include <malloc.h>
11 #endif
12
13 #include "mrilib.h"
14
15 #include "model_conv_PRF.c"
16
main(int argc,char * argv[])17 int main(int argc, char * argv[])
18 {
19 float * result, parms[4];
20 int nt = 144;
21
22 if( argc <= 2 ) {
23 printf("** usage: %s A x y sigma\n", argv[0]);
24 return 0; /* gentle help-style exit */
25 } else if( argc != 5 ) {
26 fprintf(stderr, "** usage: %s A x y sigma\n", argv[0]);
27 return 1;
28 }
29
30 parms[0] = atof(argv[1]);
31 parms[1] = atof(argv[2]);
32 parms[2] = atof(argv[3]);
33 parms[3] = atof(argv[4]);
34
35 result = (float *)malloc(nt*sizeof(float));
36 conv_model(parms, nt, NULL, result);
37
38 inputs_to_coords(g_saset, parms[1], parms[2], parms[3]);
39 disp_floats("result: ", result, nt);
40
41 return 0;
42 }
43
44