@@ -845,6 +845,15 @@ INITIALIZE
845845 line_info.my_s_v2[i] = 4*PI*PI*PI*pack*(L[i].DWfactor ? L[i].DWfactor : 1)
846846 /(line_info.V_0*line_info.V_0*V2K*V2K)
847847 *(L[i].j * L[i].F2 / L[i].q)*line_info.XsectionFactor;
848+ if (L[i].q < 3.7){
849+ double temp = asin(L[i].q*2.56/2/PI)*RAD2DEG;
850+ printf("|F|=%g\tMulti=%d\tQ=%g\ttheta=%g\n",
851+ L[i].F2,
852+ L[i].j,
853+ L[i].q,
854+ temp );
855+
856+ }
848857 /* Is not yet divided by v^2 */
849858 /* Squires [3.103] */
850859 line_info.q_v[i] = L[i].q*K2V;
@@ -853,8 +862,8 @@ INITIALIZE
853862 }
854863 if (line_info.V_0 > 0) {
855864 /* Is not yet divided by v */
856- line_info.my_a_v = pack*line_info.sigma_a/line_info.V_0*2200*100; // Factor 100 to convert from barns to fm^2
857- line_info.my_inc = pack*line_info.sigma_i/line_info.V_0*100; // Factor 100 to convert from barns to fm^2
865+ line_info.my_a_v = 0;// pack*line_info.sigma_a/line_info.V_0*2200*100; // Factor 100 to convert from barns to fm^2
866+ line_info.my_inc =0;// pack*line_info.sigma_i/line_info.V_0*100; // Factor 100 to convert from barns to fm^2
858867 MPI_MASTER(
859868 printf("PowderN: %s: Vc=%g [Angs] sigma_abs=%g [barn] sigma_inc=%g [barn] reflections=%s\n",
860869 NAME_CURRENT_COMP, line_info.V_0, line_info.sigma_a, line_info.sigma_i, reflections && strlen(reflections) ? reflections : "NULL");
@@ -1136,9 +1145,10 @@ TRACE
11361145
11371146
11381147 l_1 = v*(t3 - t2 + t1 - t0); /* Length to exit */
1139-
1140- pmul *= Nq*l_full*my_s_n*exp(-(line_info.my_a_v/v+my_s)*(l+l_1))
1148+ my_s = 0;
1149+ pmul *= Nq*l_full*my_s_n *exp(-(line_info.my_a_v/v+my_s)*(l+l_1))
11411150 /(1-(p_inc+p_transmit));
1151+
11421152 /* Correction in case of d_phi focusing - BUT only when d_phi != 0 */
11431153 if (d_phi_thread) {
11441154 pmul *= alpha/PI;
0 commit comments