From 251df6b36e1d278dd57fbddd5fe98135f2583be7 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sun, 2 Jan 2005 15:32:12 +0000 Subject: Calculate load skew correctly git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@453 b61c5cb5-eaca-4651-9a7a-d64986f99364 --- src/SetupPGV.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 #include +#include #include #include @@ -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]) -- cgit v1.2.3