Ignore:
Timestamp:
Sep 24, 2025, 4:03:13 PM (2 months ago)
Author:
rkazeroni
Message:

For GPU porting of tend_to_tke routine:

  • Put routine into module (speeds up source-to-source transformation)
  • Add "horizontal" comment to specify possible names of horizontal variables
  • Fix wrong dimensionality of pctsrf in the argument declaration (leads to GPU memory allocation problems)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/tend_to_tke.f90

    r5285 r5835  
    3232!**************************************************************************************
    3333
     34!$gpum horizontal klon
     35MODULE tend_to_tke_mod
     36  PRIVATE
     37
     38  PUBLIC tend_to_tke
     39
     40  CONTAINS
     41
    3442 SUBROUTINE tend_to_tke(dt,plev,exner,temp,windu,windv,dt_a,du_a,dv_a,pctsrf,tke)
    3543
     
    5664  REAL du_a(klon,klev)      ! Zonal wind speed tendency [m/s], grid-cell average or for a one subsurface
    5765  REAL dv_a(klon,klev)      ! Meridional wind speed tendency [m/s], grid-cell average or for a one subsurface
    58   REAL pctsrf(klon,nbsrf+1)       ! Turbulent Kinetic energy [m2/s2], grid-cell average or for a subsurface
     66  REAL pctsrf(klon,nbsrf)   ! Turbulent Kinetic energy [m2/s2], grid-cell average or for a subsurface
    5967
    6068! Inputs/Outputs
     
    149157
    150158 END SUBROUTINE tend_to_tke
     159
     160END MODULE tend_to_tke_mod
Note: See TracChangeset for help on using the changeset viewer.