Skip to content
Snippets Groups Projects
Commit 8db272a3 authored by Stephan Schulz's avatar Stephan Schulz
Browse files

fix exception references and known_unused

parent 6f126200
Branches
Tags
2 merge requests!10Feature/fix warnings,!8Refactor
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
......@@ -445,7 +445,7 @@ public:
std::vector<int> neig;
try {
balancer->getNeighbors(neig);
} catch (CustomException e) {
} catch (CustomException &e) {
std::cout << e.what() << std::endl;
MPI_Abort(MPI_COMM_WORLD, -1);
}
......@@ -459,7 +459,7 @@ public:
void getNeighbors(std::vector<int> &neig) {
try {
balancer->getNeighbors(neig);
} catch (CustomException e) {
} catch (CustomException &e) {
std::cout << e.what() << std::endl;
MPI_Abort(MPI_COMM_WORLD, -1);
}
......@@ -473,7 +473,7 @@ public:
void getNeighbors(int **neig) {
try {
balancer->getNeighbors(neig);
} catch (CustomException e) {
} catch (CustomException &e) {
std::cout << e.what() << std::endl;
MPI_Abort(MPI_COMM_WORLD, -1);
}
......@@ -637,7 +637,7 @@ public:
tag->SetValue(0, procTag);
// determine extent of system
W global_extent[6];
W known_unused global_extent[6];
W local_min[3];
W local_max[3];
W global_min[3];
......@@ -842,7 +842,7 @@ public:
delete[] global_vertices;
}
} catch (CustomException e) {
} catch (CustomException &e) {
std::cout << e.what() << std::endl;
MPI_Abort(MPI_COMM_WORLD, -1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment