Skip to content

Commit 4ae3c77

Browse files
committed
Consequence editswq>
1 parent 1a0e887 commit 4ae3c77

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

mcstas-comps/examples/Prototypes/ODIN_MCPL_TOF_train4/DiskChopper.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

mcstas-comps/examples/Prototypes/ODIN_MCPL_TOF_train4/ESS_butterfly.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

mcstas-comps/examples/Prototypes/ODIN_MCPL_TOF_train4/MultiDiskChopper.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

mcstas-comps/examples/Prototypes/ODIN_TOF_train4/DiskChopper.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

mcstas-comps/examples/Prototypes/ODIN_TOF_train4/ESS_butterfly.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

mcstas-comps/examples/Prototypes/ODIN_TOF_train4/MultiDiskChopper.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)