Ignore:
Timestamp:
02/21/17 08:40:09 (7 years ago)
Author:
yushan
Message:

one file mode OK. Tested with test_client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_scatterv.cpp

    r1053 r1056  
    318318    num_ep = comm.ep_comm_ptr->size_rank_info[1].second; 
    319319    mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 
     320 
     321    if(ep_rank != root) 
     322    { 
     323      sendcounts = new int[ep_size]; 
     324      displs = new int[ep_size]; 
     325    } 
    320326     
    321327    MPI_Bcast(const_cast<int*>(sendcounts), ep_size, MPI_INT, root, comm); 
     
    414420      } 
    415421    } 
     422    else 
     423    { 
     424      delete[] sendcounts; 
     425      delete[] displs; 
     426    } 
    416427 
    417428  } 
Note: See TracChangeset for help on using the changeset viewer.