/[escript]/branches/intelc_win32/finley/src/Util.c
ViewVC logotype

Diff of /branches/intelc_win32/finley/src/Util.c

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

revision 751 by woo409, Sat Jun 24 11:27:16 2006 UTC revision 752 by woo409, Mon Jun 26 02:25:41 2006 UTC
# Line 23  Line 23 
23    
24  #include "Finley.h"  #include "Finley.h"
25  #include "Util.h"  #include "Util.h"
26    #include "qsortG.h"
27  #ifdef _OPENMP  #ifdef _OPENMP
28  #include <omp.h>  #include <omp.h>
29  #endif  #endif
# Line 354  int Finley_Util_ValueAndIndex_compar(con Line 355  int Finley_Util_ValueAndIndex_compar(con
355     if (e1->value > e2->value) return  1;     if (e1->value > e2->value) return  1;
356     return 0;     return 0;
357  }  }
358    
359  void Finley_Util_sortValueAndIndex(dim_t n,Finley_Util_ValueAndIndex* array) {  void Finley_Util_sortValueAndIndex(dim_t n,Finley_Util_ValueAndIndex* array) {
360       /* OMP : needs parallelization !*/       /* OMP : needs parallelization !*/
361       qsort(array,n,sizeof(Finley_Util_ValueAndIndex),Finley_Util_ValueAndIndex_compar);       qsortG(array,n,sizeof(Finley_Util_ValueAndIndex),Finley_Util_ValueAndIndex_compar);
362  }  }
363    
364    

Legend:
Removed from v.751  
changed lines
  Added in v.752

  ViewVC Help
Powered by ViewVC 1.1.26