diff options
author | Thomas White <taw@physics.org> | 2016-07-29 14:54:58 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-07-29 17:42:23 +0200 |
commit | 001705c484e08d1fd8b412f997ba014d4e9adfe3 (patch) | |
tree | 716118b1fa6857c7ef391b150d91c4763006fd4a /tests/gpu_sim_check.c | |
parent | 9b1374999c98d5eb15e7a93fbeb2357bc907dd26 (diff) |
Use z component in GPU simulation
Diffstat (limited to 'tests/gpu_sim_check.c')
-rw-r--r-- | tests/gpu_sim_check.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/tests/gpu_sim_check.c b/tests/gpu_sim_check.c index c471fb0f..ba51b8db 100644 --- a/tests/gpu_sim_check.c +++ b/tests/gpu_sim_check.c @@ -113,14 +113,16 @@ int main(int argc, char *argv[]) det->panels[0].orig_max_ss = 511; det->panels[0].w = 1024; det->panels[0].h = 512; - det->panels[0].fsx = 1; - det->panels[0].fsy = 0; - det->panels[0].ssx = 0; - det->panels[0].ssy = 1; - det->panels[0].xfs = 1; - det->panels[0].yfs = 0; - det->panels[0].xss = 0; - det->panels[0].yss = 1; + det->panels[0].fsx = 1.0; + det->panels[0].fsy = 0.0; + det->panels[0].fsz = 0.4; + det->panels[0].ssx = 0.0; + det->panels[0].ssy = 1.0; + det->panels[0].ssz = 0.0; + det->panels[0].xfs = 1.0; + det->panels[0].yfs = 0.0; + det->panels[0].xss = 0.0; + det->panels[0].yss = 1.0; det->panels[0].cnx = -512.0; det->panels[0].cny = -512.0-sep; det->panels[0].clen = 100.0e-3; @@ -134,14 +136,16 @@ int main(int argc, char *argv[]) det->panels[1].orig_max_ss = 1023; det->panels[1].w = 1024; det->panels[1].h = 512; - det->panels[1].fsx = 1; - det->panels[1].fsy = 0; - det->panels[1].ssx = 0; - det->panels[1].ssy = 1; - det->panels[1].xfs = 1; - det->panels[1].yfs = 0; - det->panels[1].xss = 0; - det->panels[1].yss = 1; + det->panels[1].fsx = 1.0; + det->panels[1].fsy = 0.0; + det->panels[1].fsz = 0.0; + det->panels[1].ssx = 0.0; + det->panels[1].ssy = 1.0; + det->panels[1].ssz = 1.4; + det->panels[1].xfs = 1.0; + det->panels[1].yfs = 0.0; + det->panels[1].xss = 0.0; + det->panels[1].yss = 1.0; det->panels[1].cnx = -512.0; det->panels[1].cny = sep; det->panels[1].clen = 100.0e-3; |