Ignore:
Timestamp:
Jul 5, 2007, 2:11:45 PM (17 years ago)
Author:
lsce
Message:

ACo + YM : amelioration de la gestion du buffer mpi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/dyn3dpar/gcm.F

    r791 r807  
    1818      USE mod_hallo
    1919      USE Bands
     20      USE Write_Field
     21      USE Write_Field_phy
    2022      IMPLICIT NONE
    2123
     
    141143      SAVE latfi, lonfi, airefi
    142144     
    143 c varaiable pour l'allocation du Buffer MPI (sur NEC)     
    144       pointer (Pbuffer,MPI_Buffer(MaxBufferSize))
    145       REAL :: MPI_Buffer
    146       INTEGER(KIND=MPI_ADDRESS_KIND) :: BS
    147145      INTEGER :: ierr
    148146
     
    215213c   Initialisation partie parallele
    216214c------------------------------------
     215      CALL init_const_mpi
     216
    217217      call init_parallel
    218218      call Read_Distrib
    219       CALL init_const_mpi
    220219      CALL Init_Phys_lmdz(iim,jjp1,llm,nqmx-2,mpi_size,distrib_phys)
    221220      CALL set_bands
     
    224223      if (mpi_rank==0) call WriteBands
    225224      call SetDistrib(jj_Nb_Caldyn)
    226 c  Allocation du buffer MPI
    227       Bs=8*MaxBufferSize
    228       call MPI_ALLOC_MEM(BS,MPI_INFO_NULL,Pbuffer,ierr)
    229       print *,'ierr',ierr
    230       do i=1,MaxBufferSize
    231         MPI_Buffer(i)=i
    232       enddo
    233       call Init_Mod_hallo(MPI_Buffer)
     225      call Init_Mod_hallo
     226
    234227c$OMP PARALLEL
    235228      call InitComgeomphy
     
    379372         zcvfi(ngridmx) = cv(ip1jm-iim)
    380373         CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,aire,airefi)
     374
    381375         WRITE(lunout,*)
    382376     .           'WARNING!!! vitesse verticale nulle dans la physique'
     
    386380
    387381         call_iniphys=.false.
     382
    388383      ENDIF
    389384#endif
Note: See TracChangeset for help on using the changeset viewer.