Ignore:
Timestamp:
Jan 17, 2017 4:38:49 PM (8 years ago)
Author:
raasch
Message:

all OpenACC directives and related parts removed from the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/boundary_conds.f90

    r2101 r2118  
    2020! Current revisions:
    2121! -----------------
    22 !
     22! OpenACC directives removed
    2323!
    2424! Former revisions:
     
    188188!-- Bottom boundary
    189189    IF ( ibc_uv_b == 1 )  THEN
    190        !$acc kernels present( u_p, v_p )
    191190       u_p(nzb,:,:) = u_p(nzb+1,:,:)
    192191       v_p(nzb,:,:) = v_p(nzb+1,:,:)
    193        !$acc end kernels
    194     ENDIF
    195 
    196     !$acc kernels present( nzb_w_inner, w_p )
     192    ENDIF
     193
    197194    DO  i = nxlg, nxrg
    198195       DO  j = nysg, nyng
     
    200197       ENDDO
    201198    ENDDO
    202     !$acc end kernels
    203199
    204200!
    205201!-- Top boundary. A nested domain ( ibc_uv_t = 3 ) does not require settings.
    206202    IF ( ibc_uv_t == 0 )  THEN
    207        !$acc kernels present( u_init, u_p, v_init, v_p )
    208203        u_p(nzt+1,:,:) = u_init(nzt+1)
    209204        v_p(nzt+1,:,:) = v_init(nzt+1)
    210        !$acc end kernels
    211205    ELSEIF ( ibc_uv_t == 1 )  THEN
    212        !$acc kernels present( u_p, v_p )
    213206        u_p(nzt+1,:,:) = u_p(nzt,:,:)
    214207        v_p(nzt+1,:,:) = v_p(nzt,:,:)
    215        !$acc end kernels
    216208    ENDIF
    217209
    218210    IF ( .NOT. nest_domain )  THEN
    219        !$acc kernels present( w_p )
    220211       w_p(nzt:nzt+1,:,:) = 0.0_wp  ! nzt is not a prognostic level (but cf. pres)
    221        !$acc end kernels
    222212    ENDIF
    223213
     
    227217!-- the sea surface temperature of the coupled ocean model.
    228218    IF ( ibc_pt_b == 0 )  THEN
    229        !$acc kernels present( nzb_s_inner, pt, pt_p )
    230        !$acc loop independent
    231219       DO  i = nxlg, nxrg
    232           !$acc loop independent
    233220          DO  j = nysg, nyng
    234221             pt_p(nzb_s_inner(j,i),j,i) = pt(nzb_s_inner(j,i),j,i)
    235222          ENDDO
    236223       ENDDO
    237        !$acc end kernels
    238224    ELSEIF ( ibc_pt_b == 1 )  THEN
    239        !$acc kernels present( nzb_s_inner, pt_p )
    240        !$acc loop independent
    241225       DO  i = nxlg, nxrg
    242           !$acc loop independent
    243226          DO  j = nysg, nyng
    244227             pt_p(nzb_s_inner(j,i),j,i) = pt_p(nzb_s_inner(j,i)+1,j,i)
    245228          ENDDO
    246229       ENDDO
    247       !$acc end kernels
    248230    ENDIF
    249231
     
    251233!-- Temperature at top boundary
    252234    IF ( ibc_pt_t == 0 )  THEN
    253        !$acc kernels present( pt, pt_p )
    254235        pt_p(nzt+1,:,:) = pt(nzt+1,:,:)
    255236!
     
    259240           pt_p(nzt+1,:,:) = pt_init(nzt+1)
    260241        ENDIF
    261        !$acc end kernels
    262242    ELSEIF ( ibc_pt_t == 1 )  THEN
    263        !$acc kernels present( pt_p )
    264243        pt_p(nzt+1,:,:) = pt_p(nzt,:,:)
    265        !$acc end kernels
    266244    ELSEIF ( ibc_pt_t == 2 )  THEN
    267        !$acc kernels present( dzu, pt_p )
    268245        pt_p(nzt+1,:,:) = pt_p(nzt,:,:) + bc_pt_t_val * dzu(nzt+1)
    269        !$acc end kernels
    270246    ENDIF
    271247
     
    274250!-- Generally Neumann conditions with de/dz=0 are assumed
    275251    IF ( .NOT. constant_diffusion )  THEN
    276        !$acc kernels present( e_p, nzb_s_inner )
    277        !$acc loop independent
    278252       DO  i = nxlg, nxrg
    279           !$acc loop independent
    280253          DO  j = nysg, nyng
    281254             e_p(nzb_s_inner(j,i),j,i) = e_p(nzb_s_inner(j,i)+1,j,i)
     
    285258          e_p(nzt+1,:,:) = e_p(nzt,:,:)
    286259       ENDIF
    287        !$acc end kernels
    288260    ENDIF
    289261
Note: See TracChangeset for help on using the changeset viewer.