Skip to content

Commit

Permalink
Kind of a fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Feb 12, 2019
1 parent c1d882f commit 2c9a3b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/genmap-comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ void GenmapSplitComm(GenmapHandle h, GenmapComm *c, int bin) {
}

int GenmapCrystalInit(GenmapHandle h, GenmapComm c) {
crystal_init(&(h->cr), &(c->gsComm));
if(&(h->cr))
crystal_free(&(h->cr));
crystal_init(&(h->cr), &(h->global->gsComm));
return 0;
}

Expand Down
7 changes: 4 additions & 3 deletions src/parRSB.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,18 @@ int parRSB_partMesh(int *part, long long *vtx, int nel, int nve, int *options,

GenmapRSB(h);

/*
crystal_init(&(h->cr), &(h->global->gsComm));
// GenmapCrystalInit(h, GenmapGetGlobalComm(h));
GenmapCrystalTransfer(h, GENMAP_ORIGIN);
GenmapCrystalFinalize(h);
//GenmapCrystalFinalize(h);
crystal_free(&(h->cr));

// This should hold true
assert(GenmapGetNLocalElements(h) == nel);

for(i = 0; i < nel; i++) {
part[i] = e[i].proc;
}
*/

if(id == 0 && h->dbgLevel > 0)
printf("\nfinished in %lfs\n", comm_time()-time0);
Expand Down

0 comments on commit 2c9a3b1

Please sign in to comment.