Changeset 10998


Ignore:
Timestamp:
11/30/11 16:39:00 (13 years ago)
Author:
Mathieu Morlighem
Message:

in outputresult exit if there is no result

File:
1 edited

Legend:

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

    r10995 r10998  
    195195                }
    196196                MPI_Bcast(&numberofresults,1,MPI_DOUBLE,0,MPI_COMM_WORLD);
     197
     198                /*Get out if there is no results. Otherwise broadcast info*/
     199                if(!numberofresults) return;
    197200                if(my_rank!=0){
    198201                        resultsenums=(int*)xmalloc(numberofresults*sizeof(int));
Note: See TracChangeset for help on using the changeset viewer.