diff --git a/examples/Example13/electrons.cu b/examples/Example13/electrons.cu
index 55ad34d2f..4557891bc 100644
--- a/examples/Example13/electrons.cu
+++ b/examples/Example13/electrons.cu
@@ -84,8 +84,7 @@ static __device__ __forceinline__ void TransportElectrons(Track *electrons, cons
for (int ip = 0; ip < 3; ++ip) {
double numIALeft = currentTrack.numIALeft[ip];
if (numIALeft <= 0) {
- numIALeft = -std::log(currentTrack.Uniform());
- currentTrack.numIALeft[ip] = numIALeft;
+ numIALeft = -std::log(currentTrack.Uniform());
}
theTrack->SetNumIALeft(numIALeft, ip);
}
diff --git a/examples/Example13/gammas.cu b/examples/Example13/gammas.cu
index c38743c48..b923dc7fb 100644
--- a/examples/Example13/gammas.cu
+++ b/examples/Example13/gammas.cu
@@ -48,8 +48,7 @@ __global__ void TransportGammas(Track *gammas, const adept::MParray *active, Sec
for (int ip = 0; ip < 3; ++ip) {
double numIALeft = currentTrack.numIALeft[ip];
if (numIALeft <= 0) {
- numIALeft = -std::log(currentTrack.Uniform());
- currentTrack.numIALeft[ip] = numIALeft;
+ numIALeft = -std::log(currentTrack.Uniform());
}
theTrack->SetNumIALeft(numIALeft, ip);
}
diff --git a/examples/Example14/electrons.cuh b/examples/Example14/electrons.cuh
index 7fc198ee4..51d0efa2b 100644
--- a/examples/Example14/electrons.cuh
+++ b/examples/Example14/electrons.cuh
@@ -49,7 +49,6 @@ static __device__ __forceinline__ void TransportElectrons(Track *electrons, cons
const int slot = (*active)[i];
Track ¤tTrack = electrons[slot];
auto volume = currentTrack.navState.Top();
- int volumeID = volume->id();
// the MCC vector is indexed by the logical volume id
int lvolID = volume->GetLogicalVolume()->id();
VolAuxData const &auxData = userScoring->GetAuxData_dev(lvolID);
@@ -85,8 +84,7 @@ static __device__ __forceinline__ void TransportElectrons(Track *electrons, cons
for (int ip = 0; ip < 3; ++ip) {
double numIALeft = currentTrack.numIALeft[ip];
if (numIALeft <= 0) {
- numIALeft = -std::log(currentTrack.Uniform());
- currentTrack.numIALeft[ip] = numIALeft;
+ numIALeft = -std::log(currentTrack.Uniform());
}
theTrack->SetNumIALeft(numIALeft, ip);
}
diff --git a/examples/Example14/gammas.cuh b/examples/Example14/gammas.cuh
index 8434df7c9..615f09d32 100644
--- a/examples/Example14/gammas.cuh
+++ b/examples/Example14/gammas.cuh
@@ -50,8 +50,7 @@ __global__ void TransportGammas(Track *gammas, const adept::MParray *active, Sec
for (int ip = 0; ip < 3; ++ip) {
double numIALeft = currentTrack.numIALeft[ip];
if (numIALeft <= 0) {
- numIALeft = -std::log(currentTrack.Uniform());
- currentTrack.numIALeft[ip] = numIALeft;
+ numIALeft = -std::log(currentTrack.Uniform());
}
theTrack->SetNumIALeft(numIALeft, ip);
}
diff --git a/examples/Example17/electrons.cuh b/examples/Example17/electrons.cuh
index 02a138788..fc3efc34c 100644
--- a/examples/Example17/electrons.cuh
+++ b/examples/Example17/electrons.cuh
@@ -48,7 +48,6 @@ static __device__ __forceinline__ void TransportElectrons(adept::TrackManager
fActiveTracks)[i];
Track ¤tTrack = (*electrons)[slot];
auto volume = currentTrack.navState.Top();
- int volumeID = volume->id();
// the MCC vector is indexed by the logical volume id
int lvolID = volume->GetLogicalVolume()->id();
VolAuxData const &auxData = userScoring->GetAuxData_dev(lvolID);
@@ -84,8 +83,7 @@ static __device__ __forceinline__ void TransportElectrons(adept::TrackManager
SetNumIALeft(numIALeft, ip);
}
diff --git a/examples/Example17/gammas.cuh b/examples/Example17/gammas.cuh
index 7cd9fd504..71c8256a6 100644
--- a/examples/Example17/gammas.cuh
+++ b/examples/Example17/gammas.cuh
@@ -50,8 +50,7 @@ __global__ void TransportGammas(adept::TrackManager