Changeset 3228
- Timestamp:
- 12/15/11 17:03:34 (5 months ago)
- Files:
-
- 1 modified
-
trunk/lib/share/monitor_nd-lib.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/share/monitor_nd-lib.c
r3226 r3228 798 798 } 799 799 if (Vars->Flag_Auto_Limits != 2 || !Vars->Coord_Number) /* Vars->Flag_Auto_Limits == 0 (no auto limits/list) or 1 (store events into Buffer) */ 800 #if MCCODE_PARTICULE==neutron 801 {/*{{{*/ 800 { 801 #if defined ( RESTORE_NEUTRON ) 802 /*{{{*/ 802 803 /* automatically compute area and steradian solid angle when in AUTO mode */ 803 804 /* compute the steradian solid angle incoming on the monitor */ … … 926 927 } /* end for i */ 927 928 While_End = 1; 928 }/* end else if Vars->Flag_Auto_Limits == 2 *//*}}}*/929 #elif MCCODE_PARTICULE==Xray929 /*}}}*/ 930 #elif defined ( RESTORE_XRAY ) 930 931 /* compute values - this is somewhat different for xrays in some cases.*/ 931 {/*{{{*/932 /*{{{*/ 932 933 /* automatically compute area and steradian solid angle when in AUTO mode */ 933 934 /* compute the steradian solid angle incoming on the monitor */ … … 941 942 if (Vars->max_y < Vars->cy) Vars->max_y = Vars->cy; 942 943 Vars->mean_p += Vars->cp; 943 if ( v) {944 Vars->mean_dx += Vars->cp*fabs(Vars->c vx/v);945 Vars->mean_dy += Vars->cp*fabs(Vars->c vy/v);944 if (k) { 945 Vars->mean_dx += Vars->cp*fabs(Vars->ckx/k); 946 Vars->mean_dy += Vars->cp*fabs(Vars->cky/k); 946 947 } 947 948 Vars->area =(Vars->max_x-Vars->min_x) … … 1060 1061 } /* else will get Index later from Buffer when Flag_Auto_Limits == 2 */ 1061 1062 } /* end for i */ 1063 /*}}}*/ 1062 1064 While_End = 1; 1063 }/* end else if Vars->Flag_Auto_Limits == 2 *//*}}}*/1064 1065 #endif 1066 }/* end else if Vars->Flag_Auto_Limits == 2 */ 1065 1067 1066 1068 if (Vars->Flag_Auto_Limits != 2) /* not when reading auto limits Buffer */
