/[escript]/trunk/finley/src/Util.c
ViewVC logotype

Diff of /trunk/finley/src/Util.c

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

revision 751 by bcumming, Mon Jun 26 01:46:34 2006 UTC revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC
# Line 23  Line 23 
23    
24  #include "Finley.h"  #include "Finley.h"
25  #include "Util.h"  #include "Util.h"
26    
27  #ifdef _OPENMP  #ifdef _OPENMP
28  #include <omp.h>  #include <omp.h>
29  #endif  #endif
# Line 373  int Finley_Util_ValueAndIndex_compar(con Line 374  int Finley_Util_ValueAndIndex_compar(con
374     if (e1->value > e2->value) return  1;     if (e1->value > e2->value) return  1;
375     return 0;     return 0;
376  }  }
377    
378  void Finley_Util_sortValueAndIndex(dim_t n,Finley_Util_ValueAndIndex* array) {  void Finley_Util_sortValueAndIndex(dim_t n,Finley_Util_ValueAndIndex* array) {
379       /* OMP : needs parallelization !*/       /* OMP : needs parallelization !*/
380       qsort(array,n,sizeof(Finley_Util_ValueAndIndex),Finley_Util_ValueAndIndex_compar);       qsort(array,n,sizeof(Finley_Util_ValueAndIndex),Finley_Util_ValueAndIndex_compar);

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

  ViewVC Help
Powered by ViewVC 1.1.26