File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
mcstas-comps/examples/Prototypes Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ TRACE
193193 // T_TRANSMIT
194194 one_did_hit = 1;
195195 p_trains[train_index] *= weight_update;
196- P_last_time_manipulation += p_trains[train_index];
196+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
197197 }
198198
199199 }
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ TRACE
604604
605605 t_offset[train_index] = t;
606606 p_trains[train_index] = p/adaptive_N;
607- P_last_time_manipulation += p_trains[train_index];
607+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
608608 }
609609 // Set base particle t and p, now p will be decoupled from the source intensity.
610610 t=0;
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ TRACE
312312 else {
313313 one_did_hit = 1;
314314 p_trains[train_index] *= weight_update;
315- P_last_time_manipulation += p_trains[train_index];
315+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
316316 }
317317 }
318318 // if not a single t_offset made it through a slit, absorb this ray
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ TRACE
193193 // T_TRANSMIT
194194 one_did_hit = 1;
195195 p_trains[train_index] *= weight_update;
196- P_last_time_manipulation += p_trains[train_index];
196+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
197197 }
198198
199199 }
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ TRACE
604604
605605 t_offset[train_index] = t;
606606 p_trains[train_index] = p/adaptive_N;
607- P_last_time_manipulation += p_trains[train_index];
607+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
608608 }
609609 // Set base particle t and p, now p will be decoupled from the source intensity.
610610 t=0;
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ TRACE
312312 else {
313313 one_did_hit = 1;
314314 p_trains[train_index] *= weight_update;
315- P_last_time_manipulation += p_trains[train_index];
315+ P_last_time_manipulation = P_last_time_manipulation + p_trains[train_index];
316316 }
317317 }
318318 // if not a single t_offset made it through a slit, absorb this ray
You can’t perform that action at this time.
0 commit comments