[padb] r456 committed - Avoid printing an error when the rank for a communicator is negative....
padb at googlecode.com
padb at googlecode.com
Sat Jan 4 18:58:32 GMT 2014
Revision: 456
Author: apittman at gmail.com
Date: Sat Jan 4 18:58:01 2014 UTC
Log: Avoid printing an error when the rank for a communicator is
negative.
This can happen for MPI_COMM_NULL, there was already a check in the code
for this case however a cast was missing from the test.
http://code.google.com/p/padb/source/detail?r=456
Modified:
/trunk/src/minfo.c
=======================================
--- /trunk/src/minfo.c Mon Feb 15 18:41:29 2010 UTC
+++ /trunk/src/minfo.c Sat Jan 4 18:58:01 2014 UTC
@@ -431,7 +431,7 @@
int show_comm (struct process *p, mqs_communicator *comm, int c)
{
- if ( comm->local_rank >= 0 )
+ if ( (int)comm->local_rank >= 0 )
printf("out: c:%d rank:%d\n",
c,
(int)comm->local_rank);
More information about the padb-devel
mailing list