Ignore:
Timestamp:
02/09/21 16:37:31 (6 months ago)
Author:
yushan
Message:

Graph intermediate commit to a tmp branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_graph/src/distribution/grid_transform_connector.cpp

    r2019 r2030  
    5959        vector<size_t> recvBuff(size) ; 
    6060        MPI_Recv(recvBuff.data(), size, MPI_SIZE_T, status.MPI_SOURCE,0, localComm_,&status) ; 
    61         CArray<size_t,1> arrayTmp(recvBuff.data(), shape(recvBuff.size()), duplicateData) ; 
    62         recvIndex[status.MPI_SOURCE].reference(arrayTmp) ; 
     61        if(size) 
     62        { 
     63          CArray<size_t,1> arrayTmp(recvBuff.data(), shape(recvBuff.size()), duplicateData) ; 
     64          recvIndex[status.MPI_SOURCE].reference(arrayTmp) ; 
     65        } 
    6366        if (recvRankSize_.count(status.MPI_SOURCE)==0) recvRankSize_[status.MPI_SOURCE] = size ;  
    6467        else recvRankSize_[status.MPI_SOURCE] *= size ;  
Note: See TracChangeset for help on using the changeset viewer.