/[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 3506 by jfenwick, Wed May 11 01:59:45 2011 UTC revision 3544 by jfenwick, Wed Jul 27 06:19:10 2011 UTC
# Line 926  void DataExpanded::randomFill(long seed) Line 926  void DataExpanded::randomFill(long seed)
926          #pragma omp for schedule(static)          #pragma omp for schedule(static)
927          for (i=0;i<dvsize;++i)          for (i=0;i<dvsize;++i)
928          {          {
929          dv[i]=(double)rand_r(&info)/RAND_MAX;  #ifdef _WIN32
930            dv[i]=((double)rand())/RAND_MAX;
931    #else
932            dv[i]=((double)rand_r(&info))/RAND_MAX;
933    #endif
934          }          }
935      }      }
936      delete[] seeds;      delete[] seeds;

Legend:
Removed from v.3506  
changed lines
  Added in v.3544

  ViewVC Help
Powered by ViewVC 1.1.26