tUpdated raytracer for angpos arrays - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 9c3995cb20c289c1944874fb8371b84d805c9d59
 (DIR) parent e77953a6849f96c4fd2802a7be86c098b23490b3
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       Date:   Fri, 12 Oct 2012 10:42:06 +0200
       
       Updated raytracer for angpos arrays
       
       Diffstat:
         M raytracer/main.cpp                  |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/raytracer/main.cpp b/raytracer/main.cpp
       t@@ -134,21 +134,21 @@ int main(const int argc, const char* argv[])
              p[i].x = (float)d;        // Typecast to single precision
              (void)fread(&d, sizeof(d), 1, fin);
              v.x  = (float)d;
       -      for (int j=0; j<3; j++)
       +      for (int j=0; j<4; j++)
                (void)fread(&blankd, sizeof(blankd), 1, fin);
        
              (void)fread(&d, sizeof(d), 1, fin);
              p[i].y = (float)d;
              (void)fread(&d, sizeof(d), 1, fin);
              v.y  = (float)d;
       -      for (int j=0; j<3; j++)
       +      for (int j=0; j<4; j++)
                (void)fread(&blankd, sizeof(blankd), 1, fin);
        
              (void)fread(&d, sizeof(d), 1, fin);
              p[i].z = (float)d;
              (void)fread(&d, sizeof(d), 1, fin);
              v.z  = (float)d;
       -      for (int j=0; j<3; j++)
       +      for (int j=0; j<4; j++)
                (void)fread(&blankd, sizeof(blankd), 1, fin);
        
              // Save velocity vector length