aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-01-02 15:32:12 +0000
committerschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-01-02 15:32:12 +0000
commit251df6b36e1d278dd57fbddd5fe98135f2583be7 (patch)
treec3660649e94e71f171898daee2f5a70eb2bb3d60 /src
parentc2795409ae4a7bfb23c3f2e935b4f0325db558e8 (diff)
Calculate load skew correctly
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@453 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src')
-rw-r--r--src/SetupPGV.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SetupPGV.c b/src/SetupPGV.c
index b81864e..3530a05 100644
--- a/src/SetupPGV.c
+++ b/src/SetupPGV.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
#include <math.h>
#include <string.h>
@@ -856,7 +857,8 @@ static int PUGH_SetupPGExtrasSizes(int is_gf,
this->npoints = this->rnpoints[this_proc];
/* Set up the maxskew */
- minpoints = maxpoints = avgpoints = 0;
+ minpoints = INT_MAX;
+ maxpoints = avgpoints = 0;
for (proc = 0; proc < total_procs; proc++)
{
if (minpoints > this->rnpoints[proc])