Ignore:
Timestamp:
09/21/17 18:18:47 (7 years ago)
Author:
dubos
Message:

devel : Fix OpenMP for NH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/dynamics/caldyn_kernels_base.F90

    r538 r558  
    1414 
    1515  ! temporary shared variables for caldyn 
    16   TYPE(t_field),POINTER,PUBLIC :: f_pk(:),f_wwuu(:),f_planetvel(:) 
     16  TYPE(t_field),POINTER,PUBLIC :: f_pk(:),f_wwuu(:),f_planetvel(:), & 
     17                                  f_Fel(:), f_gradPhi2(:), f_wil(:), f_Wetadot(:) 
    1718 
    1819  INTEGER, PUBLIC :: caldyn_conserv 
     
    295296  END SUBROUTINE compute_caldyn_vert 
    296297 
    297   SUBROUTINE compute_caldyn_vert_NH(mass,geopot,W,wflux, du,dPhi,dW) 
     298  SUBROUTINE compute_caldyn_vert_NH(mass,geopot,W,wflux, W_etadot, du,dPhi,dW) 
    298299    REAL(rstd),INTENT(IN) :: mass(iim*jjm,llm) 
    299300    REAL(rstd),INTENT(IN) :: geopot(iim*jjm,llm+1) 
     
    303304    REAL(rstd),INTENT(INOUT) :: dPhi(iim*jjm,llm+1) 
    304305    REAL(rstd),INTENT(INOUT) :: dW(iim*jjm,llm+1) 
     306    REAL(rstd) :: W_etadot(iim*jjm,llm) ! vertical flux of vertical momentum 
    305307    ! local arrays 
    306308    REAL(rstd) :: eta_dot(iim*jjm, llm) ! eta_dot in full layers 
    307309    REAL(rstd) :: wcov(iim*jjm,llm) ! covariant vertical momentum in full layers 
    308     REAL(rstd) :: W_etadot(iim*jjm,llm) ! vertical flux of vertical momentum 
    309310    ! indices and temporary values 
    310311    INTEGER    :: ij, l 
     
    314315 
    315316#ifdef CPP_DYSL 
    316 !#if 0 
     317!$OMP BARRIER 
    317318#include "../kernels/caldyn_vert_NH.k90" 
     319!$OMP BARRIER 
    318320#else 
    319321#define ETA_DOT(ij) eta_dot(ij,1) 
Note: See TracChangeset for help on using the changeset viewer.