Changeset 4152


Ignore:
Timestamp:
May 16, 2022, 11:43:50 AM (2 years ago)
Author:
Ehouarn Millour
Message:

Update Openacc directives for driver.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Portage_acc/libf/dyn3d/driver.F90

    r4151 r4152  
    5555  REAL,ALLOCATABLE :: pr(:,:) ! vorticity
    5656
    57   !$acc data create(pplev, pplay, pphi, pphis, pt, pu, pv, pq, pr)
    5857
    5958! 0. Preliminary stuff: read in parameters from run.def
     
    169168  ALLOCATE(pv(ngrid,llm)) ! meridional wind at full levels
    170169  ALLOCATE(pq(ngrid,llm,nqtot)) ! tracers
     170
     171  !$acc data create(pplev, pplay, pphi, pphis, pt, pu, pv, pq, pr)
    171172
    172173  CALL init_temperature_pressure_geopot(ps,masse,teta,phis, &
     
    224225   REAL :: pdq(ngrid,llm,nqtot)
    225226   REAL :: pdps(ngrid)
    226    !$acc data create(pdu,pdv,pdt,pdq,pdps)
    227227   
    228228   INTEGER :: iday,istep
     
    232232   REAL :: flxw(ngrid,llm) ! vertical mass flux ! set to zero here.
    233233   REAL :: phi_top(ngrid)
    234    !$acc data create(phi_top,flxw)
     234   !$acc data present(pplev,pplay,pphi,pphis,pu,pv,pt,pq) &
     235   !$acc & create(phi_top,flxw,pdu,pdv,pdt,pdq,pdps)
    235236   
    236237   flxw(1:ngrid,1:llm)=0.
     
    254255       pv(:,:)=pv(:,:)+dtphys*pdv(:,:)
    255256       pq(:,:,:)=pq(:,:,:)+dtphys*pdq(:,:,:)
    256        !$acc end kernels
    257257       
    258258       ! Recomputation of relative geopotential:
     
    273273   ENDDO ! of DO iday=0,nday-1
    274274   
     275   !$acc end data
     276   
    275277   END SUBROUTINE timeloop
    276278
     
    409411    USE exner_hyb_m, ONLY: exner_hyb
    410412    USE comconst_mod, ONLY: cpp
    411     USE geopot_mod, ONLY: geopot
    412413
    413414    IMPLICIT NONE
Note: See TracChangeset for help on using the changeset viewer.