Skip to content
Snippets Groups Projects
Commit f053b654 authored by Bisseling, R.H. (Rob)'s avatar Bisseling, R.H. (Rob)
Browse files

Fixed warning for test_FreeNonzeros.c by changing abs --> labs

parent abecbfec
No related branches found
Tags v4.2
No related merge requests found
......@@ -150,7 +150,7 @@ void test_FreeNonzeros(int symmetric) {
long avgNrNzElts = pA->NrNzElts / P;
for(p=0; p<P; ++p) {
weight = ComputeWeight(pA, pA->Pstart[p], pA->Pstart[p+1]-1, NULL, &options);
totalImbalanceBefore += abs(weight-avgNrNzElts);
totalImbalanceBefore += labs(weight-avgNrNzElts);
}
long volumeBefore = ComputeVolume(pA, symmetric);
......@@ -161,7 +161,7 @@ void test_FreeNonzeros(int symmetric) {
long totalImbalanceAfter = 0.0;
for(p=0; p<P; ++p) {
weight = ComputeWeight(pA, pA->Pstart[p], pA->Pstart[p+1]-1, NULL, &options);
totalImbalanceAfter += abs(weight-avgNrNzElts);
totalImbalanceAfter += labs(weight-avgNrNzElts);
}
long volumeAfter = ComputeVolume(pA, symmetric);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment