Trisurf Monte Carlo simulator
Samo Penic
2012-02-23 83b03a38e0ab88224d3f8ce9ddfbbdd82038455c
commit | author | age
d7639a 1
SP 2 #include <string.h>
3 #include "confuse.h"
4
5 int main(void)
6 {
7
8    long int nshell=17,ncxmax=60, ncymax=60, nczmax=60;
9     double xk0=25.0, dmax=1.67,stepsize=0.15;
10     cfg_opt_t opts[] = {
11         CFG_SIMPLE_INT("nshell", &nshell),
12         CFG_SIMPLE_FLOAT("dmax", &dmax),
13         CFG_SIMPLE_FLOAT("xk0",&xk0),
14         CFG_SIMPLE_FLOAT("stepsize",&stepsize),
15         CFG_SIMPLE_INT("nxmax", &ncxmax),
16         CFG_SIMPLE_INT("nymax", &ncymax),
17         CFG_SIMPLE_INT("nzmax", &nczmax),
18         CFG_END()
19     };
20     cfg_t *cfg;    
21     int retval;
22     cfg = cfg_init(opts, 0);
23     retval=cfg_parse(cfg, "tape_new");
24
25       printf("nshell: %i\n", nshell);
26     printf("dmax: %f\n", dmax);
27     printf("xk0: %f\n", xk0);
28     printf("stepsize: %f\n", stepsize);
29     printf("nxmax: %i\n", ncxmax);
30     printf("nymax: %i\n", ncymax);
31     printf("nzmax: %i\n", nczmax);
32     return 0;
33 }
34