From bf5ba58ce0b8eb3c1d5db9ab7d2a4c655780ea54 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 5 Mar 2008 01:24:34 +0000 Subject: [PATCH] Get the count correct when the user lists the same node multiple times for -host. This commit was SVN r17711. --- orte/util/dash_host/dash_host.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/orte/util/dash_host/dash_host.c b/orte/util/dash_host/dash_host.c index 0fbdf934a5..d45eafb9e4 100644 --- a/orte/util/dash_host/dash_host.c +++ b/orte/util/dash_host/dash_host.c @@ -200,7 +200,11 @@ int orte_util_filter_dash_host_nodes(opal_list_t *nodes, (0 == strcmp(mapped_nodes[i], "localhost") || opal_ifislocal(mapped_nodes[i])))) { found = true; /* found it - leave it alone */ j++; - break; + /* keep cycling here in case there are multiple instances + * of the node on the mapped_node array - this will + * allow us to properly account for them all so we don't + * think something was specified but wasn't found + */ } } if (!found) {