/[escript]/trunk/paso/src/SparseMatrix_MatrixVector.c
ViewVC logotype

Diff of /trunk/paso/src/SparseMatrix_MatrixVector.c

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

revision 1570 by gross, Sat May 24 21:31:04 2008 UTC revision 1571 by gross, Sat May 24 22:28:33 2008 UTC
# Line 279  void  Paso_SparseMatrix_MatrixVector_CSR Line 279  void  Paso_SparseMatrix_MatrixVector_CSR
279      rest=nrow-len*np;      rest=nrow-len*np;
280  #endif  #endif
281            
282       #pragma omp parallel private(irow, len, p, local_n)       #pragma omp parallel private(irow, p, local_n)
283       {       {
284          #ifdef USE_DYNAMIC_SCHEDULING          #ifdef USE_DYNAMIC_SCHEDULING
285            #pragma omp for private(p) schedule(dynamic,1)            #pragma omp for schedule(dynamic,1)
286            for (p=0; p<n_chunks;p++) {            for (p=0; p<n_chunks;p++) {
287              irow=chunk_size*p;              irow=chunk_size*p;
288              local_n=MIN(chunk_size,nrow-chunk_size*p);              local_n=MIN(chunk_size,nrow-chunk_size*p);
289          #else          #else
290              #pragma omp for private(p) schedule(static)              #pragma omp for schedule(static)
291              for (p=0; p<np;p++) {              for (p=0; p<np;p++) {
292                 irow=len*p+MIN(p,rest);                 irow=len*p+MIN(p,rest);
293                 local_n=len+(p<rest ? 1 :0 );                 local_n=len+(p<rest ? 1 :0 );

Legend:
Removed from v.1570  
changed lines
  Added in v.1571

  ViewVC Help
Powered by ViewVC 1.1.26