Changeset 11184


Ignore:
Timestamp:
01/23/12 17:37:43 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed result output when no element is found in first cpu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/Container/Elements.cpp

    r11059 r11184  
    203203                        element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults);
    204204                }
    205                 MPI_Bcast(&numberofresults,1,MPI_DOUBLE,0,MPI_COMM_WORLD);
     205                MPI_Bcast(&numberofresults,1,MPI_DOUBLE,minrank,MPI_COMM_WORLD);
    206206
    207207                /*Get out if there is no results. Otherwise broadcast info*/
     
    213213                        resultssteps=(int*)xmalloc(numberofresults*sizeof(int));
    214214                }
    215                 MPI_Bcast(resultsenums,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
    216                 MPI_Bcast(resultssizes,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
    217                 MPI_Bcast(resultstimes,numberofresults,MPI_DOUBLE,0,MPI_COMM_WORLD);
    218                 MPI_Bcast(resultssteps,numberofresults,MPI_INT,0,MPI_COMM_WORLD);
     215                MPI_Bcast(resultsenums,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
     216                MPI_Bcast(resultssizes,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
     217                MPI_Bcast(resultstimes,numberofresults,MPI_DOUBLE,minrank,MPI_COMM_WORLD);
     218                MPI_Bcast(resultssteps,numberofresults,MPI_INT,minrank,MPI_COMM_WORLD);
    219219
    220220                /*Loop over all results and get nodal vector*/
Note: See TracChangeset for help on using the changeset viewer.