From 3f3ecfa8a2f039d7422d9619e25f473045b64854 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Fri, 25 Feb 2011 15:05:31 -0600 Subject: [PATCH] Added more void selection cleanup --- mytools/particleInfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mytools/particleInfo.cpp b/mytools/particleInfo.cpp index ccc0d82..8ab125c 100644 --- a/mytools/particleInfo.cpp +++ b/mytools/particleInfo.cpp @@ -42,21 +42,21 @@ bool loadParticleInfo(ParticleInfo& info, mul = info.ranges[0][1] - info.ranges[0][0]; f.beginCheckpoint(); for (int i = 0; i < numpart; i++) - info.particles[i].x = info.ranges[0][0] + mul*f.readReal32(); + info.particles[i].x = mul*f.readReal32(); f.endCheckpoint(); - offset = info.ranges[0][0]; - mul = info.ranges[0][1] - info.ranges[0][0]; + offset = info.ranges[1][0]; + mul = info.ranges[1][1] - info.ranges[1][0]; f.beginCheckpoint(); for (int i = 0; i < numpart; i++) - info.particles[i].y = f.readReal32(); + info.particles[i].y = mul*f.readReal32(); f.endCheckpoint(); - offset = info.ranges[0][0]; - mul = info.ranges[0][1] - info.ranges[0][0]; + offset = info.ranges[2][0]; + mul = info.ranges[2][1] - info.ranges[2][0]; f.beginCheckpoint(); for (int i = 0; i < numpart; i++) - info.particles[i].z = f.readReal32(); + info.particles[i].z = mul*f.readReal32(); f.endCheckpoint(); } catch (const NoSuchFileException& e)