52 #define __FUNC__ "Numbering_dhCreate" 76 #define __FUNC__ "Numbering_dhDestroy" 103 #define __FUNC__ "Numbering_dhSetup" 137 for (i = 0; i < len; i++)
142 if (index < first || index >= last)
158 int newSize =
size * 1.5;
159 int *tmp = (
int *)
MALLOC_DH (newSize *
sizeof (
int));
209 #define __FUNC__ "Numbering_dhGlobalToLocal" 212 int *global,
int *local)
216 int last =
first + numb->
m;
220 for (i = 0; i < len; i++)
222 int idxGlobal = global[i];
223 if (idxGlobal >=
first && idxGlobal < last)
225 local[i] = idxGlobal -
first;
234 sprintf (
msgBuf_dh,
"global index %i not found in map\n",
void Hash_i_dhReset(Hash_i_dh h)
void Hash_i_dhInsert(Hash_i_dh h, int key, int dataIN)
bool Parser_dhHasSwitch(Parser_dh p, char *s)
void Hash_i_dhCreate(Hash_i_dh *h, int sizeIN)
void Numbering_dhSetup(Numbering_dh numb, Mat_dh mat)
Hash_i_dh global_to_local
void Numbering_dhGlobalToLocal(Numbering_dh numb, int len, int *global, int *local)
void Numbering_dhCreate(Numbering_dh *numb)
void Numbering_dhDestroy(Numbering_dh numb)
void Hash_i_dhDestroy(Hash_i_dh h)
int Hash_i_dhLookup(Hash_i_dh h, int key)
char msgBuf_dh[MSG_BUF_SIZE_DH]
void shellSort_int(const int n, int *x)