when using more than one node, dont show sizes for the master
git-svn-id: svn://anubis/gvsu@330 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
69c6c86c36
commit
b025d4bd24
@ -234,7 +234,8 @@ void getSizes(int * rank, int * size, int * nprocs)
|
|||||||
{
|
{
|
||||||
int total_nprocs = 0;
|
int total_nprocs = 0;
|
||||||
cout << "Number of cores on each MPI node:" << endl;
|
cout << "Number of cores on each MPI node:" << endl;
|
||||||
for (int i = 0; i < *size; i++)
|
int i = (*size > 1) ? 1 : 0;
|
||||||
|
for (; i < *size; i++)
|
||||||
{
|
{
|
||||||
cout << all_nprocs[i] << " ";
|
cout << all_nprocs[i] << " ";
|
||||||
total_nprocs += all_nprocs[i];
|
total_nprocs += all_nprocs[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user