25 |
|
|
26 |
#include "Util.h" |
#include "Util.h" |
27 |
#include "Mesh.h" |
#include "Mesh.h" |
28 |
|
#ifdef USE_QSORTG |
29 |
#include "qsortG.h" |
#include "qsortG.h" |
30 |
|
#endif |
31 |
/**************************************************************/ |
/**************************************************************/ |
32 |
|
|
33 |
static double Finley_Mesh_lockingGridSize=0; |
static double Finley_Mesh_lockingGridSize=0; |
100 |
printf("locking grid size is %e\n",Finley_Mesh_lockingGridSize); |
printf("locking grid size is %e\n",Finley_Mesh_lockingGridSize); |
101 |
#endif |
#endif |
102 |
/* sort the elements by center center coordinates (lexigraphical)*/ |
/* sort the elements by center center coordinates (lexigraphical)*/ |
103 |
|
#ifdef USE_QSORTG |
104 |
qsortG(center,faces->numElements,sizeof(Finley_Mesh_findMatchingFaces_center),Finley_Mesh_findMatchingFaces_compar); |
qsortG(center,faces->numElements,sizeof(Finley_Mesh_findMatchingFaces_center),Finley_Mesh_findMatchingFaces_compar); |
105 |
|
#else |
106 |
|
qsort(center,faces->numElements,sizeof(Finley_Mesh_findMatchingFaces_center),Finley_Mesh_findMatchingFaces_compar); |
107 |
|
#endif |
108 |
/* find elements with matching center */ |
/* find elements with matching center */ |
109 |
*numPairs=0; |
*numPairs=0; |
110 |
/* OMP */ |
/* OMP */ |