/[escript]/trunk/escript/src/DataExpanded.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataExpanded.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3550 by jfenwick, Fri Aug 19 01:51:35 2011 UTC revision 3552 by jfenwick, Mon Aug 22 00:05:17 2011 UTC
# Line 867  void seedGens(long seed) Line 867  void seedGens(long seed)
867      }                   // I don't think it is worth a more complicated solution at this point      }                   // I don't think it is worth a more complicated solution at this point
868      if (seed!=0)      if (seed!=0)
869      {      {
870         base.seed(seed);                 base.seed((uint32_t)seed);   // without this cast, icc gets confused    
871         for (int i=0;i<numthreads;++i)         for (int i=0;i<numthreads;++i)
872         {         {
873              gens[i].seed(base());   // initialise each generator with successive random values                uint32_t b=base();
874                gens[i].seed(b);    // initialise each generator with successive random values      
875         }               }      
876      }      }
877  }  }

Legend:
Removed from v.3550  
changed lines
  Added in v.3552

  ViewVC Help
Powered by ViewVC 1.1.26