Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change return type of parrsb_part_solid() #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/parRSB.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ int parrsb_part_mesh(int *part, const long long *const vtx,
const int nel, const int nv, parrsb_options *const options,
MPI_Comm comm);

void parrsb_part_solid(int *part, const long long *vtx2, unsigned nel2,
const long long *vtx1, unsigned nel1, unsigned nv,
MPI_Comm comm);
int parrsb_part_solid(int *part, const long long *vtx2, unsigned nel2,
const long long *vtx1, unsigned nel1, unsigned nv,
MPI_Comm comm);

void parrsb_check_tagged_partitions(const long long *const eids,
const long long *const vtx, const uint nel,
Expand Down
14 changes: 8 additions & 6 deletions src/parrsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,10 @@ static void update_frontier(sint *const target, sint *const hop,
array_free(&dests);
}

void parrsb_part_solid(int *part, const long long *const vtx2,
const unsigned nel2, const long long *const vtx1,
const unsigned nel1, const unsigned nv,
const MPI_Comm comm) {
int parrsb_part_solid(int *part, const long long *const vtx2,
const unsigned nel2, const long long *const vtx1,
const unsigned nel1, const unsigned nv,
const MPI_Comm comm) {
struct comm c;
comm_init(&c, comm);
parrsb_print(&c, 1, "Running greedy solid ... nel1 = %d nel2 = %d", nel1,
Expand All @@ -642,7 +642,7 @@ void parrsb_part_solid(int *part, const long long *const vtx2,
crystal_free(&cr);
buffer_free(&bfr);
comm_free(&c);
return;
return 0;
}
}

Expand Down Expand Up @@ -703,7 +703,7 @@ void parrsb_part_solid(int *part, const long long *const vtx2,
fprintf(stderr, "Fluid + Solid mesh is not connected.\n");
fflush(stderr);
}
exit(EXIT_FAILURE);
return 1;
}
}

Expand Down Expand Up @@ -848,6 +848,8 @@ void parrsb_part_solid(int *part, const long long *const vtx2,
crystal_free(&cr);
buffer_free(&bfr);
comm_free(&c);

return 0;
}

int parrsb_part_mesh(int *part, const long long *const vtx,
Expand Down
Loading