Changes in logging of movement at spectrometers.
This commit is contained in:
@@ -62,11 +62,10 @@ inline void MultiZ_Particle_Logger::log(const Particle &logPart, const vec3 &old
|
||||
if (!logging) {
|
||||
return;
|
||||
}
|
||||
|
||||
double zold = oldLoc_m[2];
|
||||
double znew = logPart.get_x_m()[2];
|
||||
double zmin = std::min(zold,znew);
|
||||
double zmax = std::max(zold,znew);
|
||||
double zmin = std::min(zold, znew);
|
||||
double zmax = std::max(zold, znew);
|
||||
for (int i=0;i<numberZBins;i++) {
|
||||
if (zLogValues[i]>=zmin && zLogValues[i]<=zmax) {
|
||||
h5tb[i].write(logPart); // Location wrong, because set to new Location, instead of logging location.
|
||||
|
||||
Reference in New Issue
Block a user