diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-10-18 09:37:49 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-10-18 09:37:49 -0500 |
commit | ca2a9c2df4eb142f8d4b605e3334ce9bac691521 (patch) | |
tree | 5c9c13ca25f470b7362bbdde6e5eac02c0a98a63 /src/test-path.c | |
parent | 643204e807d5e78f883fc30dc7383a209e86dbc5 (diff) | |
download | sddm-ca2a9c2df4eb142f8d4b605e3334ce9bac691521.tar.gz sddm-ca2a9c2df4eb142f8d4b605e3334ce9bac691521.tar.bz2 sddm-ca2a9c2df4eb142f8d4b605e3334ce9bac691521.zip |
update fit to fit for electrons and protons
Diffstat (limited to 'src/test-path.c')
-rw-r--r-- | src/test-path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test-path.c b/src/test-path.c index 523ebd4..62994d6 100644 --- a/src/test-path.c +++ b/src/test-path.c @@ -139,7 +139,7 @@ void usage(void) int main(int argc, char **argv) { size_t i, j, n, N, z, bins; - double pos0[3], dir0[3], theta0, range, pos2[3], dir[3], T, t, tmp; + double pos0[3], dir0[3], theta0, range, pos2[3], dir[3], beta, t, tmp; double *theta1, *theta2; z = 2; @@ -211,7 +211,7 @@ int main(int argc, char **argv) gsl_histogram_increment(h2[j], simvalue->z2[j]); } for (j = 0; j < N; j++) { - path_eval(simvalue->p,range*j/(N-1),pos2,dir,&T,&t,&tmp); + path_eval(simvalue->p,range*j/(N-1),pos2,dir,&beta,&t,&tmp); theta1[j*n+i] = simvalue->dir[j*3+1] - dir[1]; theta2[j*n+i] = simvalue->dir[j*3+2] - dir[2]; } @@ -282,7 +282,7 @@ int main(int argc, char **argv) fprintf(pipe, "e\n"); sim *simvalue = simulate_path(pos0,dir0,range,theta0,N,z); for (i = 0; i < N; i++) { - path_eval(simvalue->p,range*i/(N-1),pos2,dir,&T,&t,&tmp); + path_eval(simvalue->p,range*i/(N-1),pos2,dir,&beta,&t,&tmp); fprintf(pipe, "%g %g\n", i*range/(N-1), tmp); } @@ -307,7 +307,7 @@ int main(int argc, char **argv) fprintf(pipe,"e\n"); for (i = 0; i < N; i++) { - path_eval(simvalue->p,i*range/(N-1),pos2,dir,&T,&t,&theta0); + path_eval(simvalue->p,i*range/(N-1),pos2,dir,&beta,&t,&theta0); fprintf(pipe,"%.10g %.10g %.10g\n", pos2[0], pos2[1], pos2[2]); } fprintf(pipe,"e\n"); |