diff options
-rw-r--r-- | src/SetupPGV.c | 4 |
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]) |