Ignore:
Timestamp:
07/11/17 17:57:38 (7 years ago)
Author:
yushan
Message:

bug corrected. happened when certain threads send 0 elements in the allgatherv call

Location:
XIOS/dev/branch_openmp/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/client_client_dht_template_impl.hpp

    r1203 r1209  
    105105  int clientRank; 
    106106  MPI_Comm_rank(commLevel,&clientRank); 
    107   ep_lib::MPI_Barrier(commLevel); 
     107  //ep_lib::MPI_Barrier(commLevel); 
    108108  int groupRankBegin = this->getGroupBegin()[level]; 
    109109  int nbClient = this->getNbInGroup()[level]; 
     
    434434  MPI_Comm_rank(commLevel,&clientRank); 
    435435  computeSendRecvRank(level, clientRank); 
    436   ep_lib::MPI_Barrier(commLevel); 
     436  //ep_lib::MPI_Barrier(commLevel); 
    437437 
    438438  int groupRankBegin = this->getGroupBegin()[level]; 
  • XIOS/dev/branch_openmp/src/node/field.cpp

    r1205 r1209  
    2626namespace xios{ 
    2727 
    28    /// ////////////////////// Définitions ////////////////////// /// 
     28   /// ////////////////////// Dfinitions ////////////////////// /// 
    2929 
    3030   CField::CField(void) 
     
    716716     if (context->hasClient) 
    717717     { 
    718        printf("proc %d begein transformation\n", myRank); 
    719718       solveTransformedGrid(); 
    720        printf("proc %d end transformation\n", myRank); 
    721        MPI_Barrier(context->client->intraComm); 
    722719     } 
    723720 
  • XIOS/dev/branch_openmp/src/test/test_unstruct_omp.f90

    r1203 r1209  
    5555  if(mpi_rank < mpi_size-2) then 
    5656 
    57   !$omp parallel default(private) firstprivate(dtime) 
     57  !$omp parallel default(firstprivate) firstprivate(dtime) 
    5858 
    5959  CALL xios_initialize(id,return_comm=comm) 
     
    7979  ALLOCATE(field_A_glo(ncell_glo,llm)) 
    8080  ALLOCATE(mask_glo(ncell_glo)) 
     81 
     82  lon_glo(:) = 0 
     83  lat_glo(:) = 0 
     84  bounds_lon_glo(:,:) = 0 
     85  bounds_lat_glo(:,:) = 0 
     86  i_index_glo(:) = 0 
     87  field_A_glo(:,:) = 0 
     88  mask_glo(:) = 0 
    8189 
    8290  ind=0 
     
    181189  ALLOCATE(mask(ncell)) 
    182190  ALLOCATE(n_local(ncell)) 
     191  
     192  i_index(:)=0 
     193  lon(:)=0 
     194  lat(:)=0 
     195  bounds_lon(:,:)=0 
     196  bounds_lat(:,:)=0 
     197  field_A_srf(:,:)=0 
     198  mask(:)=0 
     199  n_local(:)=0 
     200 
    183201  ncell=0 
    184202  data_n_index=0 
     
    203221  ALLOCATE(field_A_compressed(data_n_index,llm)) 
    204222  ALLOCATE(data_i_index(data_n_index)) 
     223  field_A_compressed(:,:)=0 
     224  data_i_index(:)=0 
     225 
     226 
    205227  data_n_index=0 
    206228  DO ind=1,ncell 
Note: See TracChangeset for help on using the changeset viewer.