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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.